246
CHAPTER 12
[2 Goto]
To shift program execution to a label (character string).
Entry: Goto character string
<Example>
Goto LOOP
[3 If ]
Specifies conditional branches.
• Conditional branches start with the If command and are followed by the condition
statement and the branch destination when the condition is satisfied.
• Only the Goto command can be used following an “If” command.
• A space can be entered before the Goto command to make the program easier to
read.
Entry: If condition statement Goto character string
<Example>
If A = 1 Goto LOOP (If A = 1, then execution shifts to the Label LOOP. If A is not
equal to 1, the next program line is executed.)
[4 Gosub]
Shifts program execution to the sub routine starting with Label <character string>.
• The Gosub character string must be the same as the character string of the Label
indicating the start of the sub routine.
• Return is necessary at the end of the sub routine. When the Return statement is
executed, program execution shifts to the next command after the Gosub
statement.
• Up to 10 sub routines can be nested, i.e. 10 Gosub commands may be entered
before a Return command is required.
Entry: Gosub character string
<Example>
Gosub PART 1
[5 Return]
Ends the sub routine and shifts the program execution to the next line after the
Gosub statement that specified the jump to the sub routine.
Entry: Return
EL-9650-(12)En (239-258)
8/1/00, 9:31 AM
246
Summary of Contents for EL-9650
Page 10: ...viii ...
Page 46: ...36 CHAPTER 1 ...
Page 230: ...220 CHAPTER 9 ...
Page 268: ...258 CHAPTER 12 ...
Page 349: ...339 APPENDIX When coordinate system is Rect param or polar ...
Page 350: ...340 APPENDIX When coordinate system is Seq F STYLE2 E STYLE1 ...
Page 352: ...342 APPENDIX ...
Page 353: ...343 APPENDIX on Program screen ...
Page 354: ...344 APPENDIX ...
Page 355: ...345 APPENDIX ...
Page 356: ...346 APPENDIX ...
Page 357: ...347 APPENDIX ...
Page 358: ...348 APPENDIX ...