Jump to content

Guides

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...

Important Information

We use technologies, such as cookies, to customise content and advertising, to provide social media features and to analyse traffic to the site. We also share information about your use of our site with our trusted social media, advertising and analytics partners. See more about cookies and our Privacy Policy