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! (but not play them)" Construct Classic - Examples Kit
B
111
S
38
G
17
Posts: 2,175
Reputation: 19,045


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest