Returns the first argument with error inside args, if args is an array. Or args itself, if args is an object of ExpressionError (or derived).
Returns the description of this function. An empty string if a description is not available.
Returns the name of the function
Returns the operator-character of this function. Throws an error if this function is not useable as operation.
Returns the priority of this function. Only needed for operators.
Returns true if args is an ExpressionError-object or an array which contains an ExpressionError-object.
Returns true if the priority of this function is higher than the provided priority
Returns true if this function must be called asyncron and returns the value not immediately.
Returns true if this function is also available as operation (using operator)
Returns true if this function is storing values between the calls. So, an instance needs to be created for each occurrence.
Generated using TypeDoc
Function IF
Returns
valueTrue
orvalueFalse
, according argumentselector
. Ifselector
is true, argumentvalueTrue
will be executed and returned, otherwise argumentvalueFalse
.IF
Signature:
IF((boolean|number), any, any) => any