Be a Supporter!

AS2 question

  • 278 Views
  • 3 Replies
New Topic Respond to this Topic
MichaelJ
MichaelJ
  • Member since: Mar. 2, 2009
  • Offline.
Forum Stats
Member
Level 18
Voice Actor
AS2 question 2010-09-12 14:47:39 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 2010-09-12 14:51:01 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 2010-09-12 15:03:41 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 2010-09-12 16:02:49 Reply

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