Count array index

Get help using Construct 2

Post » Wed Nov 12, 2014 12:23 pm

Hi, first sorry for my English. I have a little problem with counting how many times index appear in a array/// for example: 0-dog,1-dog, 2-dog, 3-cat, so final number of dogs is a three and cats is a one.
If someone have answer i will happy to read it/see a capx...

P.S I have run a search but find nothing (there are tons of data here so maybe i miss the answer)
ImageImageImage
B
45
S
17
G
3
Posts: 157
Reputation: 5,175

Post » Wed Nov 12, 2014 12:58 pm

Here's a quick example.

counttimesinarray.capx
You do not have the required permissions to view the files attached to this post.
B
46
S
23
G
7
Posts: 459
Reputation: 6,763

Post » Wed Nov 12, 2014 3:12 pm

Many thanks Minor :)
ImageImageImage
B
45
S
17
G
3
Posts: 157
Reputation: 5,175


Return to How do I....?

Who is online

Users browsing this forum: tarek2 and 59 guests