I am trying to get if statement functionality in a Magento CMS Page.
This post recommends something like the following:
{{if customer.group_id==4}} Print true {{else}} Print false {{/if}}
Which is the exact kinda thing I am looking for, but this doesnt work. Is there anything similar I can use?
This is what I am trying to do:
{{if data.request_quote=="on"}} Yes {{else}} nope {{/if}}
Where var data.request_quote
is a form variable. It keeps coming out as nope, even if data.request_quote
is on
.
Can anybody help?