Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Type

Description

IF-ELSE Statement

Evaluates the expression after “If“. If the expression is true, then the code immediately following “If“ will be executed. Otherwise, the contents immediately following “Else“ will be executed.

WHILE/DO-WHILE Statement

Statements for loop processes.

FOR Statement

A statement for more complex loop processes.

SWITCH-CASE Statement

Statement for executing different processes based on different conditions.

GOTO Statement

A statement that forces the flow of the program to go to a specific location in the script.

CONTINUE Keyword

A keyword used in loop processes.

RETURN Keyword

A keyword that designates the value that will be returned to the caller.

RUNSCRIPT Keyword

A keyword that calls an external program.

...

The IF-ELSE statement is one of the most frequently used logical decision-making statements. It supports nested IF statements such as: If (condition 1) { If (condition 2) { … } }. There is no limit on the level of nested IF. The Else statement may be omitted. The Else If ‘Else If’ statement is used for additional conditions following an If statement. For a given If-Else If-Else statement, only one branch will be executed. Once one condition is met, none of the following “Else If“ or “Else“ conditions are evaluated.

...

FOR (Initialization statement; Decision-Making statement; Post-Processing statement)

...

When you call an external program directly, the caller will be in stand-by standby mode until the called program (the external program) ends its operation.

...