Nested If Statements (Bootstrap Version Only)

Modified on Wed, Feb 14, 2018 at 3:40 PM

Blocks – if statement (new)

Blocks (bootstrap) supports a new if statement that accepts nesting. The syntax is as follows:

if (condition) then result 1 else result 2 endif

All parts must exist (that is, if, then, else and endif must be added even if else is not required.

Nested ifs must be surrounded by parentheses (). Nested ifs appear after then and/or after else (replacing result 1 and result 2 above). Parentheses are optional for Condition part.

Example of nested ifs

if (condition) then ( if (condition 2) then ( if (condition 3) then Result 1 else Result 2 endif ) else Result 3 endif ) else Result 4 endif

Example with Blocks

if “{Name}”!=”John” then (if “{Name}”=”Bob”  then Hello Robert else Hello {Name} endif) else Hello Johnny endif


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article