basic.ifr

Statement/BASIC Program, Releases: AP 6.2 and R91

Initiates a multi-attribute logical expression.

Syntax

ifr logical.expression [ then | else ] statement.block ifr logical.expression then statement.block [ else statement.block ]

Description

tests the result of a logical expression. Each attribute of the first element of the expression is tested against the target. Depending on whether one of the attributes in the expression evaluates to either 'true' or 'false', the statement(s) following the 'then' or 'else' clauses respectively are executed.

See the 'if' statement for more information on clause structures.

See Also

Command Name Type Description
basic.statements Definition Definition of statements and functions.
basic.search.for.truth Definition Evaluation of null and zero.
basic.then/else.construct Definition provide program flow change based upon a boolean condition.
basic.not Function Negates a logical expression.
basic.match Relational Operator Pattern matching function.
basic.rewind Statement Rewinds magnetic media.
basic.logical.expressions Definition application of logical (Boolean) operators to relational or arithmetic expressions.
basic.null Statement No-op compiler directive.
statement.block Definition one or more statements that follow a Pick/BASIC decision-path related token such as, but not limited to, 'then', 'else', 'locked' and 'onerr'.
basic.= Assignment Operator Logical 'equal' operator or variable assignment.
basic.! Logical Operator Logical 'or' operator and remark line indicator.
basic.$options Statement Sets compatibility options for the BASIC compiler.
basic.if Statement Initiates logical expression.

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.