From FreeSpace Wiki
Distance (Status operator) Returns the distance between two objects. These objects can be either a ship, a wing, or a waypoint. Returns a numeric value. Takes 2 arguments... 1: The name of one of the objects. 2: The name of the other object.
Commonly used to determine if a ship is close enough to a node to warp out.