Comparing boolean instance variables

Get help using Construct 2

Post » Wed Aug 15, 2012 5:09 pm

Hello,

Im wondering if there is a way to compare if a boolean instance variable is currently true or false?

Only option i can find is "Is boolean instance variable set", and which object its set to. I simply want to set a global variable to "1" when its false, and "0" when its true.

Any thoughts?
B
35
S
12
G
9
Posts: 191
Reputation: 8,724

Post » Wed Aug 15, 2012 5:11 pm

"Is boolean instance variable set" is the one you're looking for. Normal condition is true, inverted condition means false.
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Wed Aug 15, 2012 5:35 pm

Ohh, it was a little diffuse. Thanks, it worked fine :)
B
35
S
12
G
9
Posts: 191
Reputation: 8,724

Post » Sat Jul 18, 2015 11:45 am

@Nimtrix How to check for inverted conditions ?
B
8
S
1
Posts: 45
Reputation: 532

Post » Sat Jul 18, 2015 12:55 pm

prakharprakhar89 wrote:@Nimtrix How to check for inverted conditions ?


right click the condition and choose invert..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests