Counting values in an array

Get help using Construct 2

Post » Sat Feb 15, 2014 12:15 am

I'm using an array with 3 dimension, and am wanting to count how many times a certain value appears in the second Z dimension.

I have currently

For each XYZ element
Contains value "word" >>> Add 1 to GlobalCount

But alas that isn't working at all. Could someone be so kind as to suggest a way to fix this ?
Using R243 for all examples
B
69
S
20
G
6
Posts: 379
Reputation: 9,701

Post » Sat Feb 15, 2014 12:35 am

Use a regular for-loop and use Compare at XYZ with the appropriate indices.
ImageImageImage
B
71
S
22
G
258
Posts: 3,791
Reputation: 143,198


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 14 guests