LESSON 1:
IF YouAreNew = 1 THEN print "this is an inline comparitor"
IF YouAreNew = 1
print "this is a traditional comparitor"
ENDIF
IF YouAreNew = 1
print "this is an exclusive comparitor"
ELSE
print "but if YouAreNew <> 1 you would already know that"
ENDIF
IF YouAreNew = 1
print "this is a cascading comparitor"
IF YouWantToLearn = 1
print "you can make a simple comparison before making a more in depth one here"
ENDIF
ENDIF
IF YouAreNew = 1
print "this is a cascading exclusive comparitor"
IF YouWantToLearn = 1
print "I am glad that you are new and that you want to learn."
ELSE
print "You are new and don't want to learn, why is that?"
ENDIF
ELSE
print "you are not new, perhaps this thread is amusing to you?"
ENDIF
LESSON 2:
I am thinking of an object...
RED = 0
BLUE = 1
GREEN = 2
IF ThisThing = 0 THEN print "It is red!"
IF ThisThing = 1 THEN print "It is blue!"
IF ThisThing = 2 THEN print "It is green!"
But that is not good, I just ran three comparitors on ThisThing...
RED = 0
BLUE = 1
GREEN = 2
SELECT ThisThing
CASE 0
print "It is Red!"
ENDCASE
CASE 1
print "It is Blue!"
ENDCASE
CASE 2
print "It is Green!"
ENDCASE
CASE DEFUALT
print "It is not Red, it is not Blue, and it is not Green!"
ENDCASE
ENDSELECT
Much better, I only had to run one comparitor!
LESSON 3:
TYPE Actors
MyColor AS INTEGER
MyShape AS INTEGER
MySize AS INTEGER
ENDTYPE
DIM Things(1) AS Actors `looky looky, I can add more in later just by increasing the array size!!!
RED = 0
BLUE = 1
GREEN = 2
BOX = 0
PYRIMID = 1
SPHERE = 2
SMALL = 0
MEDIUM = 1
LARGE = 2
IF Things(0).MyColor = 0
Print "I am RED!"
ELSE
IF Things(0).MyColor = 1
Print "I am BLUE!"
ELSE
IF Things(0).MyColor = 2
Print "I am GREEN!"
ELSE
Print "I don't know what my color is!"
ENDIF
ENDIF
ENDIF
Oye! that's already too complicated!
SELECT Things(0).MyColor
CASE 0
print "I am RED!"
ENDCASE
CASE 1
print "I am BLUE!"
ENDCASE
CASE 2
print "I am GREEN!"
ENDCASE
CASE DEFAULT
print "I am not RED or BLUE or GREEN!"
ENDCASE
ENDSELECT
Okay class, you can now move on to non-literal comparitors...
LESSON 4:
RED = 0
BLUE = 1
GREEN = 2
IF SomeColor > 0 THEN print "I am not red, but I could be Blue or Green or some other thing!"
Oh I give up, if you haven't caught on yet then.... well .... LMAO :-y
LESSON 5:
I wonder how many of you opened this up? 8-)
I'm done now, seriousely!
http://ausukusa.breakset.com