pickedentity returns a handle. It's a number, of course. Like all entities. Not a memory adress. Eg:
Enemy=loadmesh("thingie.3ds")
...
p=PickedEntity(..
If p=enemy then print "outch!"
Enemy=loadmesh("thingie.3ds")
...
p=PickedEntity(..
If p=enemy then print "outch!"