Espresso

Conditionals

Syntax

Dynamo offers two conditional directives, both of which support the @else directive:

<!-- @if $variable -->
	Variable has a value!
<!-- @else -->
	Variable doesn't have a value.
<!-- @end if -->

<!-- @unless $variable2 -->
	Variable2 does not have a value!
<!-- @else -->
	Variable2 has a value.
<!-- @end unless -->

It is not currently possible to test for more than variable existence.