JUMPTO

Top  Previous  Next

Keyword Description

Jumps to line-label

Class

Action word

Where Legal

Resources

Entry Logic

Exit Logic

Initial Size

Resize

(Pre-Category)

Resize

(Category-Level)

l

l

l

l

l

 

Syntax

JUMPTO[n]

Where n is an integer > 0

Example

Sample code

IF DAYSINTRADE > 1 THEN JUMPTO[9]

TEMPMEM[1] = MEMORY[1]

TEMPMEM[2] = MEMORY[2]

BEEP 

[9]

DO COUNTERSUB 

COL1 = CLOSE

' This sets TEMPMEM[1] and TEMPMEM[2] equal to MEMORY[1] and MEMORY[2] then 

' beeps on the first day in the trade only. Each day thereafter DAYSINTRADE

' is greater than 1 so Mechanica immediately "jumps" to line label [9] and 

' continues processing at DO COUNTERSUB

 

ThumbTack white

Processing resumes on the line following the specified line label. Line label must be on the same page as the command.Tells Mechanica to skip over code that doesn't need to be executed each day.