Needed: 'case'- or 'switch'-style statements
Displaying 1-1 of 1 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
rune_darkfire

Hello community...

I have just recently looked through Verge and am trying to learn it to help out with some projects.

One thing I see sorely lacking that would help almost every demo I've seen *SO* much is the inclusion of Java-like or C++-like switch or case statements.

So instead of having ridiculous if-blocks, for example:

int amount = cost;

if(amount = a) {
b;
} else if(amount = c) {
d;
} else if(amonut = e) {
f;
} etc etc etc...

You can code the following:

switch (amount) {
a: b;
c: d;
e: f;
etc etc etc...
}

So much cleaner. If there is already Verge functionality similar to this that I am not aware of, please someone let know. Also can someone tell me how to tab text on this message board, so my pseudocode above is actually readable? Thanks for reading!

Posted on 2004-05-06 17:46:06


Displaying 1-1 of 1 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.