If

Top  Previous  Next

S

A

W

WS

ü

ü

The following commands have been implemented in EMUEScript exactly as they are implemented in OLIE™:

 

Syntax - In line IF Statement:

 

       If <Boolean Expression> GoTo <Label Name>

       If <Boolean Expression> Let < Let options>

       If <Boolean Expression> Copy<Copy options>

 

Description:

       The Let, Copy and GoTo commands in all their various formats can be used as the action taken as the result of a positive result when processing an If command.

       

Sample 1:

       The following statement will assign the value of 0 to a Count if Count is equal to 100.

If Count eq 100 Let Count = 0

       

Sample 2:

       The following statement will assign the value of "" to a Facility if Facility is equal to "CMC"

If Facility eq "CMC" Copy Facility ""

 

Sample 3:

       The following statement will go to the label named Xit if the end of the file (EOF) has been reached.

If EOF GoTo Xit