mIRC Homepage
Posted By: wld $readini - check if item exists - 11/01/03 08:27 AM
Is there any possibility to check before doing a $readini if a item exists in a specified section?
Posted By: J0ke Re: $readini - check if item exists - 11/01/03 08:44 AM
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
Posted By: wld Re: $readini - check if item exists - 11/01/03 08:48 AM
Thats exact what i want. Thanx
Posted By: qwerty Re: $readini - check if item exists - 11/01/03 10:56 AM
No need for an alias, mirc has a built-in identifier that checks if topics/items exist (and more): $ini()
© mIRC Discussion Forums