BackHomeContact Us

 

Code Example

if…then

 

Syntax

if {relational expression} then instruction

 

Function

If relational expression is true execute instruction. 

 

Error Message

If then is missing, “Expected: then”

 

Mode

Run

 

Example

if A<> B then print “A<>B”

 

Code Example

if…then…else

 

Syntax

if {relational expression} then instruction1 else instruction2

 

Function

If relational expression is true execute instruction1, otherwise execute instruction2. 

 

Error Message

If then is missing, “Expected: then”

 

Mode

Run

 

Example

if A<> B then print “A<>B” else print “A=B”  

 


 

www.OESIncorp.com

Copyright ©  2002, 2003, 2004, 2005, 2006 Optimal Engineering Systems, Inc.