Decimal Branch blocks are used to control executive flow according to a comparison of two decimal numbers.
Decimal Branchblocks are very similar to
Integer Branchblocks; the only difference is that the two numbers being compared are decimals, not integers.
Decimal Branchblocks have two input parameters, which are the decimal numbers we want to compare. They have five yellow output connectors, corresponding to the following five scenarios: the first number is > greater than the second, the first number is >= greater than or equal to the second, the two numbers are == equal, the first number is <= less than or equal to the second, and the first number is < less than the second.
In the example above, we use a
Timer block to check the price of XLM on CoinGecko once an hour. Using a
Decimal Branch block, we check to see if the price of XLM is below $0.20. If it is, we print a message to the logs with a