Array Value Check

For questions about using Classic.

Post » Fri Dec 14, 2012 11:59 pm

Is there a way to check to see if all the values in an array are the same in classic?

Or check to see how many have the same value?RandomDood2012-12-15 00:48:16
B
3
Posts: 59
Reputation: 418

Post » Sat Dec 15, 2012 12:21 pm

You can do this through a loop, lets say you use Array X 0 for storing:

[code to start check] - Array X 0 = 0
>For I = 1 to Array length - 1
+Array I = [value you want to check]

then: Array X 0 = Array X 0 + 1
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests