mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 204
K
keeker Offline OP
Fjord artisan
OP Offline
Fjord artisan
K
Joined: Dec 2002
Posts: 204
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

Joined: Dec 2002
Posts: 3,015
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,015
if ( $hget(hashtablename) != $null ) { dostuff }

Joined: Dec 2002
Posts: 204
K
keeker Offline OP
Fjord artisan
OP Offline
Fjord artisan
K
Joined: Dec 2002
Posts: 204
thanks collective smile just getting used to hash tables. now if i can just make $hfind work i will be in buisness smile

S
SE7EN
SE7EN
S
or:
if ($hget(tablename)) { laugh }

Joined: Dec 2002
Posts: 3,015
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,015
If he renamed his hash table to $false it wouldn't work (maybe unlikely, but I really hate exceptions smile...maybe I'm obsessive...).

D
DynaMup
DynaMup
D
Far, far, far too obsessive wink


Link Copied to Clipboard