I asked this also on Devotee - apologies for posting in both places but I guess here is better.
I’m setting several variables in the Channel Entries loop like so:
{exp:stash:set name="var1" parse_tags="yes"}{custom_field}{/exp:stash:set}
Then outputting them later outside the channel like this:
{exp:stash:get name="var1" default="uff" process="end"}
Which works fine. But then I want to compare “var1” to Segment_3 but can’t find any syntax/conditional which will work…either it outputs nothing or both conditions are true - have tried with If/else plugin too.
I’m guessing it’s parse order? What’s the way to compare these values? I tried with this conditional:
{if segment_3 == "{exp:stash:get name='var1'}"}Success!{/if}
And it returns nothing when the condition is actually true and the ‘success’ when it’s false. Which is odd. Anyone shed any light?