How do I do nested conditional operators?

Get help using Construct 2

Post » Thu May 05, 2016 1:42 pm

Something like so :

X>1 ? [x>2 ? "bigger than two" : "bigger than one"] : "nope"

Is it possible using Construct 2 to do this?
thanks
B
37
S
6
G
1
Posts: 301
Reputation: 2,865

Post » Thu May 05, 2016 1:45 pm

It should work if you use normal brackets. No need for square brackets there.
Scirra Founder
B
397
S
236
G
88
Posts: 24,419
Reputation: 194,542

Post » Thu May 05, 2016 1:47 pm

I must be missing out on something else in my project then :) I did it with normal brackets there.
Thank you Ashley!

EDIT: Yup, working properly :)
B
37
S
6
G
1
Posts: 301
Reputation: 2,865


Return to How do I....?

Who is online

Users browsing this forum: ST314 and 28 guests