qb45qck.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
IF...THEN...ELSE Statement QuickSCREEN
  QuickSCREEN      Details      Example      Contents      Index
──────────────────────────────────────────────────────────────────────────────
IF...THEN...ELSE - a control flow statement that allows conditional
                   execution or branching, based on the evaluation of
                   an expression that must be either true or false
 
Block IF...THEN...ELSE Syntax
  IF booleanexpression1 THEN
     [statementblock-1]
  [ELSEIF booleanexpression2 THEN
     [statementblock-2]
  . . .
  [ELSE
     [statementblock-n]]
  END IF
    ■ booleanexpression is an expression that must return non-zero (true)
      or zero (false)
    ■ statementblock consists of any number of statements on one or more
      lines.
 
Single-line IF...THEN...ELSE Syntax
  IF booleanexpression THEN thenpart [ELSE elsepart]
    ■ booleanexpression is an expression that must return non-zero (true)
      or zero (false)
    ■ thenpart consists of the statements or branches performed when
      booleanexpression is true (see Details)
    ■ elsepart consists of the statements or branches performed when
      booleanexpression is false
 
See Also  SELECT CASE  ON...GOTO  ON...GOSUB