b = 7;
Show( x );
To evaluate items in a list, use the Eval List() function.
b = 7;
c = Eval List( x );
Consider the following example, where you have a variable called fullMonth that is a list of 12 items.
N Items(::fullMonth); // returns 12 because fullMonth has 12 items.
N Items(::mlist[1]); /* returns this message: "N Items() argument must be a list" because ::mlist[1] is a variable (fullMonth) and fullMonth is a list.*/
When you add the Eval() function:
12 /* returns 12 because::mlist[1] holds ::fullMonth, and evaluating it
In a loop, you need the Eval() function in the nested loop to evaluate the variable’s contents. For example:
To fix the problem, add the Eval() function: