Type in the words(s) to search for:

    Mark results
      Userbooster Help

      ? and if (Condition Statement Execution)

      The condition statement execution conditionally executes a set of statements taking into account the value of the expression.

      if (condition)
          statement1
      [else
          statement2]
            
      (condition) ? statement1 : statement2
            

      Arguments

      condition

      Boolean expression.

      statement1

      The statement that should be executed if the condition is true. It is optional for if and required for ?. It can be a compound statement.

      statement2

      The statement that should be executed if the condition is false. It is optional for if and required for ?. It can be a compound statement.