# Global booleans still not supported?

Discussion and feedback on Construct 2

### » Fri Sep 07, 2012 3:03 am

http://www.scirra.com/forum/boolean-global-and-local-variables_topic46457.html

Said you would get to it a few months ago, any progress?
B
75
S
25
G
11
Posts: 452
Reputation: 12,595

### » Fri Sep 07, 2012 3:08 am

Ashley and Tom have a pretty long to-do list, and I see features and requests being added to it daily. It'll probably take awhile. For now, working with 1 and 0 and checking values should still suffice right?
B
37
S
11
G
6
Posts: 962
Reputation: 11,259

### » Fri Sep 07, 2012 12:58 pm

No news yet, we are aware of this, but we still have 50+ items on our todo list, we're working as fast as we can.
Scirra Founder
B
413
S
244
G
92
Posts: 25,082
Reputation: 199,732

### » Sat Sep 08, 2012 12:06 am

Alright... thanks
B
75
S
25
G
11
Posts: 452
Reputation: 12,595

### » Sat Sep 08, 2012 1:43 am

1 and 0 have the added bonus of toggling in an expression: set X to 1 - X.
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,739

### » Sat Sep 08, 2012 6:16 am

@sqiddster If X = 0, 1 - X is still 1 :P
I think you meant,
X = X - 1
B
37
S
11
G
6
Posts: 962
Reputation: 11,259

### » Sat Sep 08, 2012 1:02 pm

@rory, I said 'toggle' - as in turn 0 to 1 or 1 to 0.
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,739

### » Sat Sep 08, 2012 5:24 pm

[QUOTE=sqiddster] 1 and 0 have the added bonus of toggling in an expression: set X to 1 - X.[/QUOTE]

@sqiddster I know, I'm saying that Setting X to 1 - X when X is 0 would be that you get 1 - 0, which is still 1.. am I missing something
B
37
S
11
G
6
Posts: 962
Reputation: 11,259

### » Sat Sep 08, 2012 5:40 pm

Toggling means when we have 0, we want 1, and when we have 1, we want 0, right?

1 - 0 = 1

1 - 1 = 0

You see what I'm saying?
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,739

### » Sat Sep 08, 2012 8:12 pm

Ah, I do get it now. Sorry for the confusion man!
I really sucked at the logic behind that
B
37
S
11
G
6
Posts: 962
Reputation: 11,259

Next