Adaptive Framework 0.9.0

if

The following is a list of properties for the function if:

PropertyValue
briefIf/then/else function
categoryscript
descriptionEvaluate one of two different values depending on test condition.
functionIdif
functionLabelif
puretrue
parameters[ { "dataType": "boolean", "description": "If true, parameter \"then\" is evaluated for result. If false, parameter \"else\" is evaluated.", "name": "condition" }, { "dataType": "list", "description": "This is the body of a structured block that is evaluated if \"condition\" is true. See the \"body\" parameter of the \"block\" function for information on how the body is processed.", "name": "then" }, { "dataType": "list", "description": "This is the body of a structured block that is evaluated if \"condition\" is false. If not specified and condition is false, a null value is returned. See the \"body\" parameter of the \"block\" function for information on how the body is processed.", "name": "else", "optional": true } ]
returns{ "description": "The result of evaluating \"then\" or \"else\"" }
scriptSupporttrue