Jump to content

if/elseif/else logic

The most basic logic check is a simple if/else. This allows you to put HTML if a condition matches, or something else if it doesn't.

The syntax is simply:

{{if [expression]}}
	HTML to output if expression is true
{{else}}
	HTML to output if expression was not true
{{endif}}

 

There's also an elseif tag which allows you to specify other conditions to check if earlier conditions didn't match.

{{if [expression]}}
	HTML to output if expression is true
{{elseif [expression]}}
	HTML to output if expression is true
{{else}}
	HTML to output if other expressions were not true
{{endif}}

 


  Report Guide


×
×
  • Create New...