mIRC Homepage
Posted By: Armada isnum - 21/04/04 07:22 AM
I have a txt that is setup nicely for tokenize each line looks like this
03:54:25 ¿ 20/04/2004 ¿ 43 ¿ Alpha ¿ Alphas's home mix
$1 is time $2 is date $3 is the listener count $4 is the dj and $5 is the song. Now I'm trying to loop through and check $3 with some ifs to make a graphical page of the listener count, so far everything i try doesnt work. Ive tried if ($3 > 0) && ($3 <= 5) and so on and I also tried a few isnum ways. any ideas?
Posted By: Iori Re: isnum - 21/04/04 07:49 AM
/tokenize can fill $1 $2 $3 etc with tokens from a string, see /help /tokenize

//tokenize 191 03:54:25 ¿ 20/04/2004 ¿ 43 ¿ Alpha ¿ Alphas's home mix | echo -a $mid($3,2,-1)

191 is the ascii number for "¿"
$mid($3,2,-1) because the command actualy returns <space>43<space>
Posted By: Armada Re: isnum - 21/04/04 07:51 AM
I knew the 191 was for ¿. Cool let me check this out thanks
---
Edit:
Works cool thanks
© mIRC Discussion Forums