The Daily Click ::. Forums ::. Klik Coding Help ::. Or operators! Not the usual question.
 

Post Reply  Post Oekaki 
 

Posted By Message

Chris Burrows



Registered
  14/09/2002
Points
  2396

GOTW WINNER OCT. 2011
15th September, 2011 at 13:18:39 -


I understand the OR (logical) and OR (filtered) conditions, but I am after a different kind of OR.

Is it possible, in an event, to have something like this:

Spacebar is pressed
Ammo>0
Text="Handgun" OR Text="Shotgun"

So the event would read true when "Spacebar is pressed" AND "Ammo is greater than 0" AND EITHER "Text is equal to Handgun" OR "Text is equal to Shotgun"

This would be the same as:

Spacebar is pressed
Ammo>0
Text="Handgun"
OR
Spacebar is pressed
Ammo>0
Text="Shotgun"

But with less conditions. Anybody know? Cheers!

 
n/a

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1971

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
15th September, 2011 at 16:13:16 -

Generally speaking, no - because MMF2 doesn't support nested ORs.
In some cases, you could use the "bitwise helper" or "boolean object" extensions, but it probably wouldn't be worth the effort.

 
n/a

Chris Burrows



Registered
  14/09/2002
Points
  2396

GOTW WINNER OCT. 2011
15th September, 2011 at 16:20:15 -

I see. Thanks Sketchy!

 
n/a

Chris Burrows



Registered
  14/09/2002
Points
  2396

GOTW WINNER OCT. 2011
15th September, 2011 at 16:20:22 -

I see. Thanks Sketchy!

 
n/a
   

Post Reply



 



Advertisement

Worth A Click