User Tools

Site Tools

한국어

wikiblog:cublocstydy10:index

Table of Contents

Goto

The Goto command will instruct the current program to jump to a specified label.

If I = 2 Then
  Goto LAB1
End If
 
LAB1:
  I = 3

Gosub

The Gosub command will instruct the current program to call to a specified label.

Gosub LAB1
:
 
LAB1:
  I = 3
  Return

Must put Return command at End of sub-routine.


About Labels…

A label can be set with a colon (:) to specify a point for GoTo or GoSub to begin execution.

  ADD_VALUE:
  LINKPOINT:
      

Labels cannot use reserved keywords, numbers, or include blank spaces.

The following labels are not permitted:

  Ladder:         'Reserved keyword
  123:            'Number.
  About 10:       'Blank space.

Charles's Blog

wikiblog/cublocstydy10/index.txt · Last modified: 2022/06/23 08:34 by COMFILE Technology