pc.if
Conditional correlative for adi's.
Syntax
if condition {then a-correlative} {else a-correlative} { end }
Description
Used in dictionary attributes 7 & 8 (conversion and correlative) to generate values based on results of evaluation of expression according to the rules of a-correlative construction.
The if processing code is a stand-alone version of the if conditional allowable within an a-correlative. If the condition evaluates to true (non-zero) the a-correlative following 'then' is executed. If there is no 'then clause' a null value is returned on true.
If the condtion evaluates to zero (false) the else clause is taken. Multiple complex conditionals can be constructed by using the 'end' to close off the current 'if' and associate the 'else' with the prior 'if'.
Example
if 2#4 then 4:'**':2
if 14['1','3']='sco' then 17
See Also
User Comments
What do you think?
Share your experience or ask a question by using the form below.
Login to leave your comments.
