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

Support archive

Low Variables not evaluating conditional

James 22 Jan 2014 02:59 problem, rejected

I have a Low Variable with a conditional inside of it that doesn't seem to be evaluating a conditional. The conditional is meant to check the Member Group of the logged in user. This is the conditional:
{if logged_in_group_id == "1|6"}ADMIN{/if}

I did verify and using {logged_in_group_id} as a variable inside the LV variable does output the correct value. But when I look at the template debugger I see that {if logged_in_group_id ...} isn't resolving. I have tried it with and without the LV set to early parsed. I do have the Extension setting "Add member data to early parsed variables" set to Yes.

The LV is added to an entry via a Wygwam field. I have tried it as a {exp:low_variables:single var='lv_trust_en'} and {exp:low_variables:parse var='lv_trust_en'} tags.

Any ideas?

Replies

  1. James 22 Jan 2014 05:42

    Never mind... I realized my conditional was actually incorrect.