Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TASM 2.x / MASM 6.x Assembly Language - <b>elseif else with if directive</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ELSEIF           ELSE With IF                                       Directive

  ELSEIF expression

     This directive starts a conditional block of statements if expression
     is true (nonzero). You use it as you would an ELSE statement
     followed by an IF. For example:

                        IF NUMBER EQ 5
                           add ax,3
                        ELSEIF NUMBER EQ 4
                           add bx,2
                        ELSE
                           add cx,1
                        ENDIF

     The other variations of ELSEIF are:

                        o  ELSEIF1
                        o  ELSEIF2
                        o  ELSEIFB
                        o  ELSEIFDEF
                        o  ELSEIFDIF
                        o  ELSEIFDIFI
                        o  ELSEIFE
                        o  ELSEIFIDN
                        o  ELSEIFIDNI
                        o  ELSEIFNB
                        o  ELSEIFNDEF

See Also: ELSEIF1 ELSEIF2 ELSEIFB ELSEIFDEF ELSEIFDIF ELSEIFE

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