Pancakes
2007-10-17 22:38:33
Well, just as an example, this won't work:
I think you can see what I'm trying to get at, using case statements decide on what to to. Like if the level is between 1-10, do something, if it is between 40-60 do something else, if it is over 60 do something else.
This can be accomplished using if…then's but I feel it would be alot easier using case statements. Thanks. :)
case Random(100) of
1-10: //Do this.
40-60: //Do this:
>60: //Do this.
end;
I think you can see what I'm trying to get at, using case statements decide on what to to. Like if the level is between 1-10, do something, if it is between 40-60 do something else, if it is over 60 do something else.
This can be accomplished using if…then's but I feel it would be alot easier using case statements. Thanks. :)