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


keek: Scots - intr.v. keeked, keekĀ·ing, keeks
To peek; peep.
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
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


keek: Scots - intr.v. keeked, keekĀ·ing, keeks
To peek; peep.
Joined: Feb 2003
Posts: 2
S
Bowl of petunias
Offline
Bowl of petunias
S
Joined: Feb 2003
Posts: 2
or:
if ($hget(tablename)) { laugh }


All my bugs belong to my STUPID GIRLFRIEND THAT WONT STFU AND LET ME THINK FOR 2 SECONDS!!!
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
If he renamed his hash table to $false it wouldn't work (maybe unlikely, but I really hate exceptions smile...maybe I'm obsessive...).

Joined: Jan 2003
Posts: 16
D
Pikka bird
Offline
Pikka bird
D
Joined: Jan 2003
Posts: 16
Far, far, far too obsessive wink


A poor life this, if full of care,
We have no time to stand and stare.

Link Copied to Clipboard