cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
mostarr
Level IV

Numerical Variable Not Evaluating in List

I am trying to Write() a list with a number variable i inside of it like this

Write({i});

but it prints, literally, {i}, not {1} or {2} or whatever the variable number of i is.

i is most certainly defined and assigned because going

Write(i);

works.

What am I doing wrong?

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Numerical Variable Not Evaluating in List

Try addingEval List() around {}

 

i = 1;
Write(Eval List({i}));
-Jarmo

View solution in original post

2 REPLIES 2
jthi
Super User

Re: Numerical Variable Not Evaluating in List

Try addingEval List() around {}

 

i = 1;
Write(Eval List({i}));
-Jarmo
mostarr
Level IV

Re: Numerical Variable Not Evaluating in List

Thank you, @jthi.