Is this a bug?

Discussion and feedback on Construct 2

Post » Tue Jul 19, 2016 3:34 pm

https://www.dropbox.com/s/3rk51j07zp9oy ... .capx?dl=0

Not sure why its saying 1 either.
If anything I would expect a 0 for that specific case.
But then again I expected it to concatenate to 999.
Image ImageImage
B
168
S
50
G
169
Posts: 8,283
Reputation: 108,195

Post » Tue Jul 19, 2016 4:31 pm

9&9&9 is a boolean operation, resulting in true, or 1 in C2.
ImageImageImage
B
71
S
21
G
230
Posts: 3,688
Reputation: 128,847

Post » Tue Jul 19, 2016 4:52 pm

Ah, there's a difference for ampersand between strings and ints.
Really hard to see the usefulness of inline booleans in C2, but I guess it may be inherited from javascript.

Thanks.
Image ImageImage
B
168
S
50
G
169
Posts: 8,283
Reputation: 108,195

Post » Wed Jul 20, 2016 1:38 am

inline booleans in expression
Code: Select all
(boolean)? valueT:ValueF
B
108
S
26
G
267
Posts: 4,456
Reputation: 149,747

Post » Wed Jul 20, 2016 1:45 am

They are just slightly confusing.
Then again so is when to use negated, or else.
Image ImageImage
B
168
S
50
G
169
Posts: 8,283
Reputation: 108,195


Return to Construct 2 General

Who is online

Users browsing this forum: ugurtufekci, unicornspitfire and 2 guests