OFFICIAL EXAMPLE
Route a sample balance
Compare a fictional balance with a threshold and follow the matching branch. No blockchain call or transaction is made.
Before you begin#
- Use the Browser runtime. The balance is sample data; no wallet or RPC access is required.
Walk through the workflow#
- Import the workflow and inspect the Variable node. It creates a sample balance of 125 and a threshold of 100.
- The If node checks whether balance is greater than or equal to threshold. Its true and false outputs each lead to a different message.
- Run once. Only the true branch runs, with the message Balance meets the threshold.
- Change the sample balance to 75 and run again. The false branch now produces Balance is below the threshold.