ifpdistg <number>
Checks if the actor's distance to the player is greater than <number>. Also see ifpdistl.