Hi,
the second parameter N in the $eval identifier, determines how many times you want the 1st parameter evaluated.
--------------------------------------------------------------------------------------------
In your example: $eval($gettok($read(file.txt,1),2,61),
0)
--> Evaluates your input 0 times. Result:
$gettok($read(file.txt,1),2,61) $eval($gettok($read(file.txt,1),2,61),
1)
--> Evaluates your input 1 time. Result:
%bar $eval($gettok($read(file.txt,1),2,61),
2)
--> Evaluates your input 2 times. In other words, it firsts evaluates once, which returns %bar, and then it evaluates again, in other words it evaluates %bar, which will be the
value that
%bar contains. --------------------------------------------------------------------------------------------
So the N determines how many times you want the input parameter evaluated.
Hope this helped you understand the functionality of $eval.
Greets
Edit: Another example regarding $eval can be found
here