Create Empty Array to put new values into IDL
<p>If I have a pre-existing array, X, and I want to extract values from X and put them into a new array, new_x, how do I do that?  </p>

<p>I understand that I can take parts of the arrays using range functions, but I am extracting data from X using conditions written using for loops.</p>