Due to somewhat popular request, as of version 1.7.2, I've added support for the new "unless" conditional.
If you've used it in Ruby then it'll seem natural, but if not, then simply consider it as an equivalent of "if not". This can be used as both an attribute on any node or as the node itself:
<div>
<var arg="5"/>
<unless condition="arg==5">
<p>argis5</p>
</unless>
<unless condition="arg==6">
<p>argisnot6</p>
</unless>
</div>
<!-- outputs <div><p>argisnot6</p></div> -->
<div>
<var arg="5"/>
<p unless="arg==5">argis5</p>
<p unless="arg==6">argisnot6</p>
</div>
<!-- outputs <div><p>argisnot6</p></div> -->
This feature is supported for all of Spark's current language compilers (Ruby, Python, C#, JavaScript and
VB.NET)
All the best,
Rob