< GLBasic Programming < BASIC
This part is about the commands IF THEN ELSEIF ELSE.
LET number = -3 //Or your own IF number<0 THEN PRINT "Number is negative" ELSEIF number>0 THEN PRINT "Number is positive" ELSE PRINT "Number is zero" END IF
I hope you got it now.
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.