IF/ELSE in templates not working
-
I am trying to use an IF/ELSE conditional in a Pods template. It does not seem to work, and returns the ELSE results consistently. This is a snippet:
[if apartment_status=”Available”]<p><span style=”font-size: inherit;”>Available on {@availdate}</span><p>
[else] <p><span style=”font-size: inherit;”>(Currently not available.)</span>[/if]</p>
What am I missing here? The docs show that one can use the field= shorthand, as opposed to field=”apartment_status”:
[if field=”my_field_name” value=”5″]
[if field=”my_field_name” value=”5″ compare=”=”]
[if my_field_name=”5″]
The page I need help with: [log in to see the link]
The topic ‘IF/ELSE in templates not working’ is closed to new replies.