SUIT Framework

Scripting Using Integrated Templates

Docs - if

12/27/2015: SUIT Framework is no longer actively maintained.

Available Since: Rulebox (1.0.0)

Show the string if necessary.

Syntax [if ( condition="str" not="bool" )]string[/if]
Parameters
string

The string to be shown or collapsed based on the condition.

condition

The name of the variable containing the condition result. (Default: null. The string will collapse.)

not

Whether or not to negate the results of the condition. (Default: false)

Static Variables
decode

The variables to be JSON decoded. (Default: ["not"])

delimiter

The string that separates the levels of the condition variable. (Default: ".")

owner

The object to grab the condition variable from. (Default: templating.var)

Output

Depending on the condition, either the string or nothing.

Config Notes
See Also