A3CS
June 1, 2019, 5:20pm
1
Hey guys, not sure if it is just me, but it doesn’t appear that we can target NULL for the Site Information tags?
For example, creating a variable if a site information created field is empty.
{% if si.ohoo.hosh == null %}
<p>No special Hours</p>
{% else %}
<p>{{si.ohoo.hosh}}</p>
{% endif %}
Doesn’t seem to be picking up ‘Null’. I’ve also tried it with == ‘’ and it isn’t working either. @vlad.z is this done on purpose?
Thanks,
Aaron
Still having problems @A3CS ?
Your example seems to be working for me, and also my example?
{% if si.gc.fn == null %}
<p>EMPTY</p>
{% else %}
<p>{{si.gc.fn}}</p>
{% endif %}
“Other way”
{% if si.gc.fn != null and si.gc.fn != "" %}
<p>{{si.gc.fn}}</p>
{% else %}
<p>EMPTY</p>
{% endif %}
Hi @A3CS
Can you give me a link to the site where the issue occurs?
A3CS
June 3, 2019, 5:13pm
4
I’ll get back to you on this… I don’t recall the site I was checking it on…plus I want to test it once more with Peter’s info, as if it is working for him it should be working for me.
1 Like
Ok if the issue still will be replicated please send a support ticket then.