Add decimal support in If statements

It was messing with me that 150 > 175.0000, it would be great if support for decimals was added.

There’s different behavior between float and int parsing depending on the size of the number.

Instead of trying to auto-detect (and potentially breaking existing flows), I’ve added some new comparison methods (available on if statements and advanced conditionals):

  • equals (numeric) - this converts both values to ints then compares, rather than comparing in string form
  • equals (float) - this converts both values to floats then compares
  • is greater than (float)
  • is less than (float)
  • is greater than or equal to (float)
  • is less than or equal to (float)

The float variants of the existing number comparison methods will convert the numbers to floats (rather than ints, as is the behavior with the current/‘standard’ versions of those) before the comparison.

1 Like

Thank you!!