mIRC Home    About    Download    Register    News    Help

Print Thread
#80058 21/04/04 07:22 AM
Joined: Mar 2004
Posts: 540
A
Armada Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
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?

#80059 21/04/04 07:49 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
/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>

#80060 21/04/04 07:51 AM
Joined: Mar 2004
Posts: 540
A
Armada Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
I knew the 191 was for ¿. Cool let me check this out thanks
---
Edit:
Works cool thanks

Last edited by Armada; 21/04/04 07:58 AM.

Link Copied to Clipboard