When I design a hash table I like to make the identifying piece of data that I am most commonly going to be searching for the item name. So you would search for ...

$hget(info,<gatekeeper>)

What are you searching for most often in the hash table? Nickname? Gatekeeper?

To answer your issue, you need to use the .data property when searching the data field. Without it, $hfind is looking for a match in the item's.

Originally Posted By: mIRC help file

$hfind(name/N, text, N, M)

Searches table for the Nth item name which matches text. Returns item name.

Properties: data

If you specify the .data property, searches for a matching data value.


If Genius' code doesn't work it is because you specify the Nth item name BEFORE the w signifying wildcard search.

Try...

Code:
test {
  var %search = 5f67d56b2beb4a8b8ff3433eea054532,*
  echo -a Number of matches: $hfind(info,%search,0,w).data
  echo -a Data from match: $hget(info,$hfind(info,%search,1,w).data)
}