I have a on text that sets a variable %listeners.112 03:57:47 06/04/2004 25 SNRadioBot The Offspring - Get it Right %listeners.113 04:01:02 06/04/2004 25 SNRadioBot Disturbed - Remember %listeners.114 04:06:03 06/04/2004 27 SNRadioBot Disturbed - Stupify %listeners.115 04:10:33 06/04/2004 27 SNRadioBot Metallica S&M - The Thing That Should Not Be %listeners.116 04:18:03 06/04/2004 27 SNRadioBot Linkin Park - Believe Me 112 113 114 115 116 is just a increment What i want to do is loop though with and do things with the variable but I cant "resolve" the variable, ive try the [ ] things and $eval i just cant get it
Hmm tried to do something with it, Im not good with whiles so I tried to change to a if so I could add something like to loop through to catch a dj's name
Code:
alias listeners {
var %x = $var(%listeners.*,0)
var %i = 1
:begin
if (%i <= %x) {
if ($1 isin $eval($+(%,listeners.,%i),2)) {
echo -a $ifmatch
inc %i
}
}
}
alias listeners {
var %x = $var(%listeners.*,0)
var %i = 1
:begin
if (%i <= %x) {
if ($1 isin $eval($+(%,listeners.,%i),2)) {
echo -a %i
}
inc %i
goto begin
}
}