That is the integer pointer to the entity itself. Assuming you've created global references to the target entity ...
global MySphere = createsphere()
global MyCUbe = createcube()
target = PickedEntity()
if Target = MySphere {do something with mysphere}
if Target = MyCube {do something with mycube}
global MySphere = createsphere()
global MyCUbe = createcube()
target = PickedEntity()
if Target = MySphere {do something with mysphere}
if Target = MyCube {do something with mycube}