LowVar Not Working With Simple Conditional
Hi Low -
I have a variable called 'lv_stratlogin' which is a select field with values of Show, Hide. It is set to early parsing.
I have this conditional:
{if lv_stratlogin == 'Show'}
some text here...
{/if}
When the var is set to 'Show' the conditional above is not showing the text. I have verified that {lv_stratlogin} does output the correctly selected value as a stand-along tag. Template debugging seems to show that var correctly as a snippet.
Further, this all works in our staging environment but fails as above when in our production environment. These environments are almost identical in terms of well, everything.
I am absolutely stumped as to what could be interfering with this.
Any thoughts/help?
Thanks,
Mike
Replies
Low 12 Aug 2014 19:24
What are your LV, EE and PHP versions? Maybe there's a caching issue, so you can try and clear that. If the var is listed in the Snippets array in the template debugging output, it should behave like native snippets. You're sure it's there? Maybe there's a typo in the conditional?
coalescent.mike 12 Aug 2014 19:56
Ah, sorry to waste your time. There was a typo...another dev made an edit to the var short name and mistyped it. All is good - thanks for the quick reply.
Low 12 Aug 2014 19:57
No worries. Glad it's working.