Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Is it possible to Compare multiple Link Property fields?

Quote Reply
Is it possible to Compare multiple Link Property fields?
Below is an example of few fields under link properties for example link with ID 2:

rand1 = a
rand2 = b
rand3 = c
rand4 = d
rand5 = e
rand6 = f
rand7 = g
rand8 = h
rand9 = i


I am trying to use below if/elsif comparison code, however, it does not seem to work :(

<%if $rand1 EQ $rand2 OR $rand2 OR $rand3 OR $rand4 OR $rand5 OR $rand6 OR $rand7 OR $rand8 OR $rand9 %>
rand3 = Yes, it matches a field
<%else%>
No match found.. So display : Rand3 = <%rand3%>
<%endif%>

Any idea on what am I doing wrong or what the right if/elsif code should be above?

Thanks.

Vishal
-------------------------------------------------------
Subject Author Views Date
Thread Is it possible to Compare multiple Link Property fields? VishalT 1032 Mar 6, 2020, 6:23 AM
Thread Re: [VishalT] Is it possible to Compare multiple Link Property fields?
el noe 1013 Mar 6, 2020, 10:22 AM
Thread Re: [el noe] Is it possible to Compare multiple Link Property fields?
VishalT 1006 Mar 6, 2020, 2:38 PM
Post Re: [VishalT] Is it possible to Compare multiple Link Property fields?
el noe 993 Mar 7, 2020, 4:03 AM