Forum Topic: Double if conditions

(65 views • 5 replies)

This topic is 1 page long.

<< < > >>
None

UnrealCanine

Reply To Post Reply & Quote

Posted at: 7/24/09 07:13 AM

UnrealCanine DARK LEVEL 16

Sign-Up: 02/06/08

Posts: 119

Hi guys, I've added this code;

if(_root.player.char._currentframe!=7) && (_root.player.char.strong._currentframe!
=>12)

Where if the players not dead, or in the middle of an attack, he can do something, but it's not accepting it

How do I allow to if conditions?


None

4urentertainment

Reply To Post Reply & Quote

Posted at: 7/24/09 07:17 AM

4urentertainment NEUTRAL LEVEL 13

Sign-Up: 08/01/08

Posts: 1,557

if(_root.player.char._currentframe!=7 && _root.player.char.strong._currentframe!=>12){
//code here
}

This should work.

"When you look at yourself from a universal standpoint, something inside always reminds or informs you that there are bigger and better things to worry about. "- Einstein


None

UnknownFury

Reply To Post Reply & Quote

Posted at: 7/24/09 07:21 AM

UnknownFury EVIL LEVEL 26

Sign-Up: 08/10/05

Posts: 6,031

Also < instead of !=>

Portfolio(Under construction): UnknownFury.com |
Msn: giant_ak_47@msn.com | Contact: me@unknownfury.com
Follow me on twitter!


None

UnrealCanine

Reply To Post Reply & Quote

Posted at: 7/24/09 07:21 AM

UnrealCanine DARK LEVEL 16

Sign-Up: 02/06/08

Posts: 119

At 7/24/09 07:17 AM, 4urentertainment wrote: if(_root.player.char._currentframe!=7 && _root.player.char.strong._currentframe!=

>12){

//code here
}

This should work.

**Error** Scene=Scene 1, layer=Character, frame=3:Line 21: Operator '!=' must be followed by an operand


None

4urentertainment

Reply To Post Reply & Quote

Posted at: 7/24/09 07:25 AM

4urentertainment NEUTRAL LEVEL 13

Sign-Up: 08/01/08

Posts: 1,557

At 7/24/09 07:21 AM, UnrealCanine wrote: **Error** Scene=Scene 1, layer=Character, frame=3:Line 21: Operator '!=' must be followed by an operand

Like UnknownFury said, you can't have !=> just do <

"When you look at yourself from a universal standpoint, something inside always reminds or informs you that there are bigger and better things to worry about. "- Einstein


None

UnrealCanine

Reply To Post Reply & Quote

Posted at: 7/24/09 07:31 AM

UnrealCanine DARK LEVEL 16

Sign-Up: 02/06/08

Posts: 119

Yeah, I got that error before I read his post


All times are Eastern Standard Time (GMT -5) | Current Time: 10:31 PM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!