Check in x variables how many have the same value - 15/06/15 07:20 PM
Good evening everyone.
I've been making a twitch bot for a streamer and I've been successful getting values and all those stuff from apis but now I have a doubt.
The bot get some values from the api as follows:
So this gives me 6 variables.
Imagining that this sets..
How can I make it so that my bot says that there are two A's, one B and three C's in an efficient way?
(or even more different values like one of each [a,b,c,d,e,f] p.e.)
Thanks in advance
I've been making a twitch bot for a streamer and I've been successful getting values and all those stuff from apis but now I have a doubt.
The bot get some values from the api as follows:
Code:
var %i = 1 while (%i < 7) { SET %slot.%i = <json parser stuff here>) inc %i }
So this gives me 6 variables.
Imagining that this sets..
Code:
slot.1 = A slot.2 = A slot.3 = B slot.4 = C slot.5 = C slot.6 = C
How can I make it so that my bot says that there are two A's, one B and three C's in an efficient way?
(or even more different values like one of each [a,b,c,d,e,f] p.e.)
Thanks in advance