Compare Value against Array?

Get help using Construct 2

Post » Sun Aug 18, 2013 4:51 am

How do I compare a value against a whole array?

if Variable = (any value on X axis of Array) then output A
else output B
B
10
S
4
G
2
Posts: 133
Reputation: 2,667

Post » Sun Aug 18, 2013 6:00 am

One way:

SearchX
ImageImageImage
B
71
S
22
G
248
Posts: 3,759
Reputation: 138,069

Post » Sun Aug 18, 2013 7:32 am

Wow... Thanks very much... my solution was incredibly more complex. And it didn't work! I like the Stop Loop. I had not seen that before and as my array is huge that will save some time.
B
10
S
4
G
2
Posts: 133
Reputation: 2,667


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, DrKoala and 13 guests