Processor Set variable

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 meanings:

Field name
Required?
Detail

Variable name for storing result

Yes

Variable name

Value

Yes

Value to assign to the variable

Advanced variable assignment

Assign a variable’s value 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.

Last updated