Repository navigation
Built in Expressions Reference
Glossary:
- Bypass result: Returns the last result in the expression-block.
Description: Returns the input expression as a result
Hint: Forbidden
Input: Executed once
Result: Any value
Description: Returns the variable path in the hint.
Hint: Required, the path of the variable.
Input: Ignored
Result: Any value
Description: Sets the input as the value for the variable name given in the hint.
Hint: Required, the path of the variable.
Input: Executed once
Result: Bypass
Description: Returns the input if the operand is evaluated as true(following the Javascript evaluation rules for booleans), otherwise it returns the result in the block. The operand can be a path in the hint or the previous result.
Hint: Optional, the path of the variable.
Input: Executed once
Result: If the condition is met returns the input, otherwise it Bypass the result.
Description: Returns the input if the operand is evaluated as false(following the Javascript evaluation rules for booleans). The operand can be a variable name in the hint or the previous result.
Hint: Optional, the path of the variable.
Input: Executed once
Result: If the condition is met returns the input, otherwise it Bypass the result.
Description: Process the input forever or until it founds a loop control expression. Returns an array with the results of every input execution.
Hint: Forbidden.
Input: Executed multiple times.
Result: Array
Description: Process the input per element in the array in the last result. Returns an array with the results of every input execution.
Hint: Optional, prefix for the CurrentItem variable.
Input: Executed multiple times.
Input Variables: CurrentItem
Result: Array
Description: Immediately stops the execution of the current or any other iteration. Any result in the current iteration will NOT be added to the loop.
Hint: Forbidden
Input: Ignored
Result: Bypass
Description: Immediately stops the execution of the current iteration. Any result in the current iteration will NOT be added to the loop.
Hint: Forbidden
Input: Ignored
Result: Bypass
Description: When used inside priest JSON code, it executes the input of the root expression. Specially intended for custom expressions.
Hint: Forbidden
Input: Ignored
Result: Any value.
Description: Returns the input, if there is any error it will be saved internally so @catch or @returnError work properly.
Hint: Forbidden
Input: Executed once.
Result: Any value. Bypass if any errors occurs.
Description: Returns the input if an error was catch by @try. Clears the error automatically.
Hint: Forbidden
Input: Executed once.
Result: Any value. Bypass if there is no errors.
Description: Returns the last error in the expression block. if there is no errors it returns undefined.
Hint: Forbidden
Input: Ignored.
Result: Any value.
Description: Returns the last error in the expression block. if there is no errors it returns undefined.
Hint: Forbidden
Input: Ignored.
Result: Bypass.
Description: Returns true if all the comparable values are equal, otherwise returns false. A hint with 'strict' can enforce the expression to compare types too, by default this is turned off. If operand doesn't have at least two comparable values it will return undefined.
Hint: Optional, "strict" can enforce type checking.
Input: Executed once.
Result: Bypass.
Description: Returns true if all the comparable values are not equal, otherwise returns false. A hint with 'strict' can enforce the expression to compare types too, by default this is turned off. If operand doesn't have at least two comparable values it will return undefined. Ignores any input.
Hint: Optional, "strict" can enforce type checking.
Input: Executed once.
Result: Bypass.
Description: Increments the given variable name in the hint by the input. If the operand or the input are not numbers it will assign NaN.
Hint: Required, Variable name.
Input: Executed once.
Result: Bypass.
Description: Decrements the given variable name in the hint by the input. If the operand or the input are not numbers it will assign NaN.
Hint: Required, Variable name.
Input: Executed once.
Result: Bypass.