00:00
00:00
Newgrounds Background Image Theme

lbkush just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

AS2 question 2010-09-12 14:47:39


Hiya. I am having a problem... I want a code to say
"if( _root.batteriess == true) OR (_root.batteriessin == true){
gotoAndStop(3);"

I don't know how to code the "or" in there.
It's an *OR not an AND, I know how to do AND but I want either one to make it go to frame 3, because both of them won't be true at the same time.
Please help! Thanks.


BBS Signature

Response to AS2 question 2010-09-12 14:51:01


Use " || " As in:

if( _root.batteriess == true || etc){
}

Response to AS2 question 2010-09-12 15:03:41


Thanks, Coolio-Niato.


BBS Signature

Response to AS2 question 2010-09-12 16:02:49


if( (_root.batteriess == true) OR (_root.batteriessin == true))