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,860

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
387
S
230
G
87
Posts: 24,249
Reputation: 192,240

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,860


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot], leandrogenske, R0J0hound, TylerJS and 9 guests