endif

Completes an if block.

Syntax

endif

Input

N/A

Example

Example 1
Template:
{numer = 0}
{denom = 0}

{if(!numer)}
  The numerator is 0, so the

  result is 0.
{elseif(!denom)}
  The denominator is 0, so a

  result is impossible.
{else}
  The result is: {numer/denom}.
{endif}
Output:
The numerator is 0, so the result is 0.
Example 2
Template:
{x = 8}
{y = 4}
{if(x % y)}
The remainder is {x % y}.
{else}
{x} is a multiple of {y}.
{endif}
Output:
8 is a multiple of 4.

Comments

Every if block in a template must end with an endif statement. When an if block terminates, the statement following the endif statement is executed.