Comparing two variables not working
-
Hello,
I already used this Plug In quite a lot and it works very well. But I cannot find a solution for this problem:I just want to check, if in my posts (courses) the field year_for_sorting has always the same content, or not. If it has at least two different values, I want to add a headline in a following function. Everything seems to work fine, except the if-condition:
[set last]0[/set] [set mtocount]0[/set] [loop type=courses orderby=year_for_sorting] [set new][field year_for_sorting][/set] [pass vars] [if var=new not value='{LAST}'] [set mtocount][calc]mtocount+1[/calc][/set] [/if] [set last][field year_for_sorting][/set] [/loop]
The variable mtcount will be used later, to show the headlines, if its value is higher than 1.
Do you see any mistake?
Jens
The page I need help with: [log in to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Comparing two variables not working’ is closed to new replies.