If Block

If block executes blocks under “True” only if certain condition is met otherwise blocks under “False” are executed.

# How to create an if block

  1. Drag "If" block under “Control Blocks” in block picker.
  2. Enter a condition. You dont have to use double curly braces while entering variable in condition input. You can use following comparators to compare two values:
    1. ==: equal to
    2. {">="}: greater than or equal to
    3. {"<="}: less than or equal to
    4. {"!="}: not equal to
  3. You can test multiple conditions at once by using “and” and “or” between the conditions
    1. Eg: Condtion1 and condition2. This will execute only if condition1 and condition2 both are true.
    2. Eg: Condtion1 or condition2. This will execute if either condition1 or condition2 are true.
  4. You can group conditions using brackets eg: {"(condtion1)"} and {"(condtion2)"}