CallFunction
This function calls given function rule from current procedure. Function will be called in the same script context as calling rule so every variable defined in base rule before CallFunction will be available in function and every variable defined in function will be available after end of CallFunction
Syntax
CallFunction("functionName");
Function arguments
- functionName – (String) Name of the rule with function type to be called
Return value
This function returns Boolean.
Returns true if function was executed successfully, false otherwise.
Examples
Example 1:
This will execute rule with name Calculate code. Calculate code function can alter value of code variable and this new value will be assigned to [Code] field;
code=100; CallFunction("Calculate code"); [Code]=code;