Rebecca,
I am wondering if what you are asking needs to be explained at a more basic level than how Justin showed. His example does give you an answer, however, the way you described your problem, I can speculate on scenarios where the components of your conditional statement may be coming from sources other than from the current data table.
One of the basics in a JMP data table, is that any cell is directly addressable. Using the data table from Justin's answer, any of the cells can be accessed by just specifying the column name and row number.
:Age[1]
points to the first rows value for the column Age. A more correct way to reference it, is to use the data table pointer (data table namespace). So if the pointer to the data table as specified in Justin's response is "dt" then
dt:Age[1]
is the more proper form.
Taking Justin's example, we could actually change the values in place and not have to create a new column. The following code will do that
Names Default to Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
For( I = 1, I <= N Rows( dt ), I++,
if(dt:Age < 14,
dt:Age = 0
);
);
Jim