Summary
When using the distance{d=#} condition, you can't use a placeholder in the #.
distance{d=#}
#