All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

LowVar Not Working With Simple Conditional

coalescent.mike 12 Aug 2014 19:19 problem, rejected

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

  1. 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?

  2. 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.

  3. Low 12 Aug 2014 19:57

    No worries. Glad it's working.