lotus



previous page: L02.1) String Literals as References
  
page up: BETA Programming Language FAQ
  
next page: L02.3) Xor Primitive

L02.2) Simple If




Description

This article is from the FAQ, by with numerous contributions by others.

L02.2) Simple If

Often the following If statement is used:

b: @boolean;
do (if b//TRUE then ... else ... if);

The current version of the compiler supports an extension to the BETA
language called Simple If. This extension means, that the case-selector //
may be omitted, if the evaluation on the left hand side exits a boolean.
That is, the above may be written

b: @boolean;
do (if b then ... else ... if);

Like in the general if-statement, the else part if optional.

 

Continue to:















TOP
previous page: L02.1) String Literals as References
  
page up: BETA Programming Language FAQ
  
next page: L02.3) Xor Primitive