This example picks the distance between two atoms. No parameters are required, and the atoms do not have to be bonded to each other.
pick bond ( resid 5 and name nz ) ( resid 1 and name o ) geometry end