Current Help System: Tutor Translator (View Core Help)

## Flow Control

Unconditional

The label definition:

L_NAME: translates to è

L_NAME= /LABEL

The command

JUMP L_NAME translates to è

GOTO/L_NAME

Conditional

The following conditional expressions that are supported by Tutor for Windows are:

1. If log_exprs THEN
   . . . . (Commands). . . .
   END_IF

2. If log_exprs THEN
   . . . . (Commands). . . .
   ELSE
   . . . . (Commands). . . .
   END_IF

3. If log_exprs THEN
   . . . . (Commands). . . .
   ELSIF log_exprs THEN
   . . . . (Commands). . . .
   END_IF

4. If log_exprs THEN
   . . . . (Commands). . . .
   ELSIF log_exprs THEN
   . . . . (Commands). . . .
   ELSE
   . . . . (Commands). . . .
   END_IF

Where log_exprs is a logical expression that can be True or False (see the ”Relational and Logical Operators” section).

The Following table shows the translation from Tutor to PC-DMIS

TUTOR Command | PC-DMIS Equivalent
IF V1 EQ 1 THEN . . . . (Commands 1)\ . . . . END_IF | IF/E.V1 == 1 . . . . (Commands 1) . . . . END_ELSE/
IF V1 EQ 1 THEN . . . . (Commands 1) . . . .
ELSE
. . . .
(Commands 2)
. . . .
END_IF

IF/E.V1 == 1
. . . .
(Commands 1)
. . . .
END_IF/

ELSE/
. . . .
(Commands 2)
. . . .
END_ELSE/

IF V1 EQ 1 THEN . . . . (Commands 1) . . . .
ELSIF V2 EQ (V1-1.29)
THEN
. . . .
(Commands 2)
. . . .
END_IF

IF/E.V1 == 1
. . . .
(Commands 1)
. . . .
END_IF/

ELSE_IF/E.V2==E.V1-1.29
. . . .
(Commands 2)
. . . .
END_ELSE_IF/

IF V1 EQ 1 THEN . . . . (Commands 1) . . . .
ELSIF V2 EQ (V1-1.29)
THEN
. . . .
(Commands 2)
. . . .
ELSE
. . . .
(Commands 3)
. . . .
END_IF

IF/E.V1 == 1
. . . .
(Commands 1)
. . . .
END_IF/

ELSE_IF/E.V2==E.V1-1.29
. . . .
(Commands 2)
. . . .
END_ELSE_IF/

ELSE/
. . . .
(Commands 3)
. . . .
END_ELSE/