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
S
1
Posts: 59
Reputation: 568

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
88
S
29
G
13
Posts: 2,098
Reputation: 15,171


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 6 guests