Michael Posted November 3, 2014 Report Posted November 3, 2014 Template parse error: elseif tag doesn't exist This is good if you want to do this: {% if package.name == "Product A" %} Whatever goes here. {% elseif package.name == "Product B" %} Whatever goes here. {% else %} This is for packages not listed above. {% endif %} Quote
Tyson Posted November 4, 2014 Report Posted November 4, 2014 H2o is not designed to support grouped logic statements (i.e. an if combined with an else), as it intends to be simple, and currently allows both of those conditions to be used individually. You may want to consider simplifying your template such that you don't need a third condition. Quote
Michael Posted November 4, 2014 Author Report Posted November 4, 2014 H2o is not designed to support grouped logic statements (i.e. an if combined with an else), as it intends to be simple, and currently allows both of those conditions to be used individually. You may want to consider simplifying your template such that you don't need a third condition. So we need to use: {% if %} {% endif %} That worked for me mate. Thank you. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.