Conditionals
These event types allow you to test values along your chain of events.
Sometimes you want to test the value of certain variables before proceeding. To do so, you can use conditionals.
Iff
Iff
takes what you pass it and attempts to evaluate it as true or false. All of the following are valid uses of this block:
=Iff({{ some_variable }})
=Iff(1)
=Iff(0<switch>)
=Iff({% if some_variable|length > 101 %}1{% endif %})
In all cases, iff will attempt to resolve the value of what you pass it, and then treat it as a boolean (true or false) value.
Niff
Summit also has the inverse of iff
, which we call niff
, short for not-iff. If you pass the same conditional to both blocks, you will get opposite results, which makes niff an else, essentially.
Updated about 2 months ago