VaeML gets better if/elseif/else support - June 25, 2010

VaeML, our awesome content presentation language, now has better support for if-statements.  Before, we did not support the idea of an elseif statement, and we had a weird notion that a <v:else> tag should be nested inside a <v:if> tag rather than coming after it.

We have fixed both of these issues.  Observe:

<v:if path="price>500">
Comes with free overnight shipping!
</v:if>
<v:elseif path="price>250">
Comes with free 2-day shipping!
</v:elseif>
<v:else>
Comes with free ground shipping!
</v:else>

It's the new hotness.  Note that you can still nest <v:else> inside <v:if> if you'd prefer it that way.

By the way, if you use Haml, it makes the above look a lot more elegant:

%v:if(path="price>500")
Comes with free overnight shipping!
%v:elseif(path="price>250")
Comes with free 2-day shipping!
%v:else
Comes with free ground shipping!

Enjoy!