Script question

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

Post Reply
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

Script question

Post by enric »

Is this valid?
if ( a == 10 || b < 5 )

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

or both are valid?
rf900
Staff Sergeant - Kavallerie
Staff Sergeant - Kavallerie
Posts: 339
Joined: Fri May 04, 2012 6:59 am

Re: Script question

Post 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.
Post Reply

Return to “Battle Academy 2: Modders Corner”