I've tried $read and $file but cant get it to work..
How do I make a if statement where lets say:
if $nick isin blah.txt { msg # $nick is in blah.txt!! }
Hi,
supposing that your blah.txt file exists of lines with on each line 1 nickname, then you can use:
if $read(blah.txt,w,$nick) { msg # $nick is in blah.txt!! }
Greets
That worked, but how do i get it to do somthing like this:
on *:TEXT:!test:#: {
if $read(test.txt,w,$nick) { msg # $nick is in test.txt!! }
elseif { msg # Sorry You are not in the list, $nick }
}
Thanks, i was to characters off :tongue: so close..
Hehe,
yeah you were close. By the way, if you wouldn't know it yet, the mIRC help file is really good. You'll find a lot of documentation on commands, identifier, events, etc.
/help if then else
Bye!