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
44
S
6
G
1
Posts: 331
Reputation: 3,143

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
414
S
245
G
92
Posts: 25,198
Reputation: 200,337

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
44
S
6
G
1
Posts: 331
Reputation: 3,143


Return to How do I....?

Who is online

Users browsing this forum: ELFIN and 4 guests