Custom Behaviors

A few ideas for custom behaviors:

  • Adding ToNumber

  • Adding and for if statements, either using the word and or &&
    if (num1 == 4 && num2 == 0) {
    setOut(1);
    }

  • Adding or for if statements, either using the word or, or ||
    if (num1 == 4 || num2 == 0) {
    setOut(1);
    }

Custom behavior uses Haxe, so you can already do everything your asking for.

  1. Std.parseFloat( ) - Converts text to float
  2. Those should work as you written them, && and || should work.
  3. You can also do conditional if statements, such as:
    setOut(num==4 && num2==0? 1:0)
1 Like

Oh ok, I was assuming you could only really do the things shown in the How does this work thing, thank you for telling me that.