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
172
S
50
G
183
Posts: 8,440
Reputation: 115,599

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
22
G
258
Posts: 3,791
Reputation: 143,198

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
172
S
50
G
183
Posts: 8,440
Reputation: 115,599

Post » Wed Jul 20, 2016 1:38 am

inline booleans in expression
Code: Select all
(boolean)? valueT:ValueF
B
110
S
28
G
280
Posts: 4,488
Reputation: 156,568

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
172
S
50
G
183
Posts: 8,440
Reputation: 115,599


Return to Construct 2 General

Who is online

Users browsing this forum: julianlee and 5 guests