What code to do a Dir and make all Dir one direction?

Hi Steve,

You will always get better answers when posting an example of the issue.

(grasshopper help us help you, but completely relevant to Rhino questions as well)