If syntax
Posted: Tue Jun 25, 2002 4:41 am
Can I do or not like this:
Essentially I'm just putting one if and one elseif in the same if clause, Is this allowed, The idea should be pretty clear but let's say it once more:
Might be obvious to you but i'm a bit confused now, as i've tried it out and it works, it doesn't, it works... You get the idea...
Code: Select all
if ( (somethin == true && something_else == false) || (some != "yeah" && i_am_not == jeesus) ){
// more code
}Code: Select all
if ( (many conditions) || (alternative conditions, if first ones didn't add up) ) {
}