Skip to content

Logic ​

Conditional operations such as comparisons, booleans, and branching.

Controls If ​

Block ​

ifdo

Description ​

If a value is true, then do some statements.

Params ​

  • IF0: Boolean
  • DO0: Blocks

Logic Compare ​

Block ​

= β–Ύ

Description ​

Return true if both inputs equal each other.

Params ​

  • A: Any
  • OP: Dropdown
    • =
    • β‰ 
    • ‏<
    • ‏≀
    • ‏>
    • ‏β‰₯
  • B: Any

Logic Operation ​

Block ​

and β–Ύ

Description ​

Return true if both inputs are true.

Params ​

  • A: Boolean
  • OP: Dropdown
    • and
    • or
  • B: Boolean

Logic Negate ​

Block ​

not

Description ​

Returns true if the input is false. Returns false if the input is true.

Params ​

  • BOOL: Boolean

Logic Boolean ​

Block ​

true β–Ύ

Description ​

Returns either true or false.

Params ​

  • BOOL: Dropdown
    • true
    • false

Logic Null ​

Block ​

null

Description ​

Returns null.

Logic Ternary ​

Block ​

testifΒ trueifΒ false

Description ​

Check the condition in 'test'. If the condition is true, returns the 'if true' value; otherwise returns the 'if false' value.

Params ​

  • IF: Boolean
  • THEN: Any
  • ELSE: Any

Math Number Property ​

Block ​

0iseven β–Ύ

Description ​

Check if a number is an even, odd, prime, whole, positive, negative, or if it is divisible by certain number. Returns true or false.

Params ​

  • NUMBER_TO_CHECK: Number
  • PROPERTY: Dropdown
    • even
    • odd
    • prime
    • whole
    • positive
    • negative
    • divisible by