Be a Supporter!
MichaelJ
MichaelJ
  • Member since: Mar. 2, 2009
  • Offline.
Forum Stats
Member
Level 18
Voice Actor
AS2 question Sep. 12th, 2010 @ 02:47 PM Reply

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
Coolio-Niato
Coolio-Niato
  • Member since: Jun. 30, 2005
  • Offline.
Forum Stats
Member
Level 28
Blank Slate
Response to AS2 question Sep. 12th, 2010 @ 02:51 PM Reply

Use " || " As in:

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

MichaelJ
MichaelJ
  • Member since: Mar. 2, 2009
  • Offline.
Forum Stats
Member
Level 18
Voice Actor
Response to AS2 question Sep. 12th, 2010 @ 03:03 PM Reply

Thanks, Coolio-Niato.


BBS Signature
dario111cro
dario111cro
  • Member since: Jan. 1, 2010
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to AS2 question Sep. 12th, 2010 @ 04:02 PM Reply

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