Logic blocks

Logic blocks

IsNumber block

The Is Number block determines if a value is a valid number, as follows:

  • Returns TRUE if the value on the input port is a valid number.
  • Returns FALSE if the value on the input port is NaN (Not A Number). This value is considered an invalid value in ADL.

If you use a NaN value as an input to any smart trading block, such as an Order block, the block will not create a new order. If the block is instructed to modify an existing order to a price or a quantity of NaN, it will simply delete the order.

Block properties

To customize the block, update the Block Properties.

Property Description
Name Name to display beneath the block on the ADL canvas