Skip to content

Action Call Function

Calls a defined function by name, executing its flow and returning.

Inputs: 1 · Outputs: Then

Settings

SettingTypeRequiredDefaultDescription
Function NameStringYesName of the function to call (must match a Function trigger node).
ArgumentsString ArrayNoValues to pass to the function. Accessible as %arg_1%, %arg_2%, etc.
Pass Current VariablesBooleanNotrueIf enabled, local variables from the calling context are accessible in the function. Disable to only pass the explicit arguments above.

How It Works

  1. Execution jumps to the matching Function node.
  2. The function's flow runs to completion.
  3. Execution returns and continues from the Then output.

Example

Call a reward function with arguments:

  1. Function Name: giveReward
  2. Arguments: diamond, 5
  3. In the function, use %arg_1% (= diamond) and %arg_2% (= 5)

Oasis Admin Editor Documentation