mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2003
Posts: 5
W
wld Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
W
Joined: Jan 2003
Posts: 5
Is there any possibility to check before doing a $readini if a item exists in a specified section?

Joined: Jan 2003
Posts: 150
J
Vogon poet
Offline
Vogon poet
J
Joined: Jan 2003
Posts: 150
If this is what you wanted:

Code:
alias testini {
  if ($readini(mirc.ini, mIRC, $1)) { echo 4 $readini(mirc.ini, mIRC, $1) }
  else { echo 4 No value... for $1 }
}
now try:
/testini nick
/testini anick
/testini whatever


Go ahead, jump. 100,000 lemmings can't be wrong.
Joined: Jan 2003
Posts: 5
W
wld Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
W
Joined: Jan 2003
Posts: 5
Thats exact what i want. Thanx

Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
No need for an alias, mirc has a built-in identifier that checks if topics/items exist (and more): $ini()


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com

Link Copied to Clipboard