If

An if statement will allow for evaluating clauses when the first clause evaluates to true that block will be displayed.

<if :="{{$i}} == 0">
  <span>$i is equal to 0</span>
</if>
<elif :="{{$i}} == 1">
  <span>$i is equal to 1</span>
</elif>
<elif :="{{$i}} == 2 && {{$j}} == 3">
  <span>$i is equal to 2 and $j is equal to 3</span>
</elif>
<else>
  <span>No matches were found</span>
</else>

if

The if element opens an if/elif/else block. It takes a single attribute that needs to evaluate to true or false.

<if :="{{$i}} == 0">
  <span>$i is equal to 0</span>
</if>

elif

The optional elif element must follow an if or an elif element. If it doesn't it will be removed and will not be evaluated.

<if>...</if>
<elif :="{{$i}} == 0">
  <span>$i is equal to 0</span>
</elif>

else

The optional else element must come last in an if/elif/else block and must follow an if or an elif element. If it doesn't it will be removed and will not be evaluated. An else block will always evaluate to true when all other blocks evaluate to false.

<if>...</if>
<elif>...</elif>
<else>
  <span>No matches were found</span>
</else>