Michael Posted November 3, 2014 Report Share 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 Link to comment Share on other sites More sharing options...
alexistkd Posted November 3, 2014 Report Share Posted November 3, 2014 +1 Quote Link to comment Share on other sites More sharing options...
Tyson Posted November 4, 2014 Report Share 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 Link to comment Share on other sites More sharing options...
Michael Posted November 4, 2014 Author Report Share 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 Link to comment Share on other sites More sharing options...
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.