if
The following is a list of properties for the function if
:
Property | Value |
---|---|
brief | If/then/else function |
category | script |
description | Evaluate one of two different values depending on test condition. |
functionId | if |
functionLabel | if |
pure | true |
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\"" } |
scriptSupport | true |