parentheses in IF?
Displaying 1-10 of 10 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
Technetium

I've been having some problems with an IF statement, and rather than post the thing to the help board, I figured I would first ask if V3 even allows us to use parentheses inside IF (or WHILE or FOR, for that matter). Is that something that V3 doesn't allow?

ex... if(X >= (Y-b)/m)

Posted on 2004-03-26 21:53:59

rpgking

Yes, it does. I just tried putting parentheses in one of my if statements and it worked fine...

Posted on 2004-03-26 22:33:40

mcgrue

in VERGE I find it helpful to remove any ambiguity with parens. So I'd do:

if( X >= ((Y-b)/m)) )

instead.

Posted on 2004-03-26 23:14:52 (last edited on 2004-03-27 00:37:33)

Overkill

...So I'd do:

if( X >= ((Y-b)/m) )

...


You're missing a bracket.

Posted on 2004-03-26 23:40:53 (last edited on 2004-03-26 23:41:13)

mcgrue

Fixed.

Stupid webpage doesn't give compiler errors :(

Posted on 2004-03-27 00:37:19

KilloZapit

// But then you would have to remark out all your discussion. :P

Posted on 2004-03-27 00:40:20

andy

You're missing a bracket.

Brackets are []. Braces are {}. Parenthesis are ().

Posted on 2004-03-27 06:34:18

mcgrue

You're missing a bracket.

Brackets are []. Braces are {}. Parenthesis are ().


AND YOUR MOM IS FAT HAHAHAH.

...

Posted on 2004-03-27 08:13:12

fatdork

i'm fat.

Posted on 2004-03-27 09:08:25

mcgrue

Dude, you are getting punchy, aren't you?

Posted on 2004-03-27 09:16:34


Displaying 1-10 of 10 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.