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 subroutine quit (q)</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
CONDITIONAL STRING SUBROUTINE QUIT (Q)

Purpose: Makes a decision about returning from a subroutine based on the
         result of a string expression.

Purpose: Makes a decision about branching to a subroutine based on the
         result of a string expression.

Format:  Qn1 x n2 .label

Remarks: Q         Subroutine call.

         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.

         The pointer will return to the statement after the statement that
         called the subroutine if the Q statement is true.

         Wild Card
         Character:          Good for:

         ?                   Any alphanumeric character (includes symbols)

         #                   Any number

         @                   Any letter

Examples:          If:                 And:                Then:

                   QA(1)="Start".Label A(1)=Start          Quit and return

                   QB(1)=$1.Label      B(1)=1234           Quit and return
                                       $1=1234

                   Q$3="Data".Label    $3="Data"           Quit and return

                   QR(4)="Da@@".Label  R(4)="Date"         Quit and return

                   QJ(17)="Da@@".Label J(17)=Dat5          Don't
                                                           Quit

                   QA(1)>"STAR".Label  A(1)="START"        Quit and return

                   QA(1)>"STARZ".Label A(1)="START"        Don't
                                                           Quit

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