Yeah, I KNOW I'm not doing it right, I just can't find what's wrong -_- might be the hour, nothing promised! XD
on 1:input:*:{
if $left($1,1) == / && $findtok($1-,while,0,32) > 0 {
var %i = 1
while %i <= $findtok($1-,while,0,32) {
var %n = $findtok($1-,while,%i,32)
tokenize 32 $instok($1-,$eval($read($mircdir\mSS\Config,5) == 1 &&,0),$calc(%n + 1),32)
inc %i
}
echo -a $1-
$1-
haltdef
}
}
Edit: Btw, I added the echo line just to check it...
The goal is to add that condition to any while loop entered via command line.
Depending on what I change, I get one of these:
1) VAR Unknown command
(Used a var command as the first one)
2) Nothing happens(except for the echo)
Edit#2: Chanegd the $eval thing to a simpler $!, forgot about that...still doesn't work, obviously...
Thanks in advance,
ziv.