Page 1 of 1

Script question

Posted: Fri Nov 06, 2015 10:20 am
by enric
Is this valid?
if ( a == 10 || b < 5 )

or should be
if( ( a == 10) || ( b < 5 ) )

or both are valid?

Re: Script question

Posted: Fri Nov 06, 2015 12:57 pm
by rf900
From what I read hear both are valid because there are 2 condition, for more than 2 you need to use brackets.

http://www.slitherinebravo.net/GameWiki ... tub_engine

Not sure how much of the wiki is still valid but it is a very good reference.