INPUT /  OUTPUT /  LANGUAGE






if tag

Category: ephemeral logic tag

Evaluates a different code branch depending on whether a condition is met, and produces any resulting values produced by the chosen code branch.

Sample usage

Fields

Primary field

Secondary fields

Behaviour

When the if tag is complete, the condition in the tag's primary field is equated to a value of either true or false. If the condition was true, and the then field is defined, the code in the then field is executed. If the condition was false and the elsefield is defined, the code in the else field is executed instead. No code is executed if neither field is defined. If code in either field is executed and produces values, the if tag itself produces those values so they can be used in the parent field of the if tag. The lifetime of the if tag then ends.

Notes

Example