Pass parameters to a QuickFunction
- Last UpdatedJul 23, 2024
- 1 minute read
Parameters to QuickFunctions are always passed by value. You cannot pass parameters to QuickFunctions by reference.
You can pass any valid expression as a parameter, as long as the expression evaluates to the data type that is required for the parameter. Such expressions can include literal values, tag references, and function calls, all linked together by suitable operators. For more information on expressions and operators, see Value assignments and operators. When the script calls the function, the expression is evaluated and the resulting value passed to the function.
Note: You cannot nest QuickFunction calls so that a QuickFunction is used as a parameter for another QuickFunction. For example, CALL QF1(CALL QF2()); is not a valid statement.