Type in the words(s) to search for:

    Mark results
      Userbooster Help

      if, else, ? Statements

      Conditionally executes a group of statements.

      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.