Skip to main content
This processor assigns a value to a variable and creates the variable if it doesn’t already exist.

Basic variable assignment

Example set a value for the WALLET_ADDRESS variable
Configuration details

Configuration details

Configuration fields

FieldRequiredDescription
Variable to save resultYesVariable name
ValueYesValue to assign to the variable

Advanced variable assignment

Assign a variable’s value based on specific conditions
Example assign variables based on specific conditions

Example assign variables based on specific conditions

In that example, if:
  • if TOKEN_NAME equals USDT, then set SWAP_AMOUNT to 100.
  • if TOKEN_NAME equals WETH, set SWAP_AMOUNT to 0.1.