Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ if_v — Apollo

Media Vault

Software Library

Restoration Projects

Artifacts Sought

;
IF -- Evaluates a given expression, and executes an action-list conditionally.
      (The IF command serves the same purpose as an if/then or if/then/else
       construct in most high-level languages.)


FORMAT

  IF  expression action-list1   -Else action-list2


REQUIRED ARGUMENTS

  expression     Any legal expression which produces a boolean (logical) or
                 integral result.  See the expressions" listing earlier
                 in this encyclopedia for details.

  action-list1   An action-list.  See the "action-list" listing earlier in
                 this encyclopedia for a definition of action-list.  If the
                 expression is boolean and evaluates to true, or if the
                 expression is arithmetic and evaluates to nonzero, then
                 DEBUG executes action-list1.


OPTIONAL ARGUMENT

  -Else action-list2   An action-list.  If the expression is boolean and
                       evaluates to false, or if the expression is arithmetic
                       and evaluates to zero, then DEBUG executes
                       action-list2.


DESCRIPTION


  Use the IF command to conditionally execute one or more DEBUG commands
  stored in an action-list.

  For full details, see Chapter 3 of the DOMAIN Language Level Debugger
  Reference manual.

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026