4-263
Detailed explanation of command words
4MELFA-BASIC IV
(Label)
[Function]
This indicates the jump site.
[Format]
[Terminology]
<Label Name>
Describe a character string that starts with an alphabetic character.
Up to 8 characters can be used. (Up to 9 characters including *.)
<Command line>
The command line can be described after the colon after the label (:).
[Reference Program]
1 *SUB1
2 If M1=1 Then GoTo *SUB1
3 *LBL1 : IF M_In(19)=0 Then GoTo *LBL1
' Wait by the 300 lines until the input signal of No. 10 turns
on.
[Explanation]
(1) An error will not occur even if this is not referred to during the program.
(2) If the same label is defined several times in the same program, an error will occur at the execution.
(3) The reserved words can't be used for the label.
(4) If the underscore is used for the label name, the 1st character is "L." only. If the characters except "L" are
used (ex. *A_LABEL), an error occurs.
Ex.) The correct example of the label with using the underscore. (The 1st character is "L")
*L_ABC, *L12_345, *LABEL_1
The mistake example of the label with using the underscore.
*H_ABC, *ABC_123, *NG_, *_LABEL
(5) The software J1 or later, the command line can be described after the colon after the label (:). However,
after the command line, the colon cannot be described and the command line cannot be described
again.
*<Label Name>
*<Label Name> [:<Command line>]