Jump to content
Sign in to follow this  
Muzza

OR boolean operators problem

Recommended Posts

Am i totally incompetant or does the OR function not work.

If i have one on act. A1=true, and one A2=true,

and put into another trigger's condition field A1 or A2, the trigger only seems to activate when both are completed.

Share this post


Link to post
Share on other sites

OR is not a function and I can tell you, with all certainty, that it indeed works.

I would say to initialize both values to false in a trigger first. You an see if the vars are valid by..

hint format["%1, %2", A1,A2];

You should see true or false.

--Ben

Share this post


Link to post
Share on other sites

Im not sure about ArmA but in OFP "OR" didn't work in triggers you had to use a bouble pipe "||".

Share this post


Link to post
Share on other sites

"||" and "OR" both work... initialize your boolean variables in init.sqs/init.sqf and try again (like set them to false for example).

Share this post


Link to post
Share on other sites

Yep Baddo is correct.

The two values you are trying to compare aren't initialized as they should be.

You are trying to compare

scalarboollolercopter=true or scalarboollolercopter=true

smile_o.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×