Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Intermec Online Guide - <b>conditional string goto (if...then) (g)</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
CONDITIONAL STRING GOTO (If...Then) (G)

Purpose: Makes a decision about program flow based on the result of a
         string expression.

Format:  Gn1 x n2 .label

Remarks: G         GOTO

         n1        File record, string register, or literal data.

         x         < or = or >

         n2        File record, string register, or literal data; may
                   include wild cards if literal data.

         .label    Label for program pointer to jump to.


         Wild Card
         Character:          Good for:

         ?                   Any alphanumeric character (includes symbols)

         #                   Any number

         @                   Any letter

Examples:          If:                 And:                Then:

                   GA(1)="Start".Label A(1)=Start          Jump to Label

                   GB(1)=$1.Label      B(1)=1234           Jump to Label
                                       $1=1234

                   G$3="Data".Label    $3="Data"           Jump to Label

                   GR(4)="Da@@".Label  R(4)="Date"         Jump to Label

                   GJ(17)="Da@@".Label J(17)=Dat5          Don't
                                                           Jump to Label

                   GA(1)>"STAR".Label  A(1)="START"        Jump to Label

                   GA(1)>"STARZ".Label A(1)="START"        Don't
                                                           Jump to Label

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson