mIRC Homepage
Posted By: keeker how to tell if hash table already exists - 01/02/03 06:30 AM
Is there a way to tell if a hash table already exists? Like if i make an mp3alias and it uses hash tables, is there a way i can detect if the hash table filelist is made and if not, then echo a message to the active window?
it probably has something to do with if statements right? any help would be appreciated



thanks keeker
if ( $hget(hashtablename) != $null ) { dostuff }
Posted By: keeker Re: how to tell if hash table already exists - 01/02/03 07:14 AM
thanks collective smile just getting used to hash tables. now if i can just make $hfind work i will be in buisness smile
Posted By: SE7EN Re: how to tell if hash table already exists - 02/02/03 08:07 AM
or:
if ($hget(tablename)) { laugh }
If he renamed his hash table to $false it wouldn't work (maybe unlikely, but I really hate exceptions smile...maybe I'm obsessive...).
Posted By: DynaMup Re: how to tell if hash table already exists - 03/02/03 01:24 PM
Far, far, far too obsessive wink
© mIRC Discussion Forums