HP Forums
full documentation to use EVAL cmd - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: full documentation to use EVAL cmd (/thread-7162.html)



full documentation to use EVAL cmd - compsystems - 11-03-2016 11:44 AM

Eval says

Quote:Syntax:
EVAL(Expr)
Useful in programs where parameters are passed unevaluated with the command QUOTE.
Example:
EVAL('2+3') → 5

but the documentation is incomplete (HELP key)

Please add the following

eval(id,#); very useful to explore the contents of each variable =)

Example

w:=x; [enter] x
x:=y; [enter] y
y:=z; [enter] z

w; [enter] z =(
but

eval(w,1); x
eval(w,2); y
eval(w,3); z

eval(w,4); z
eval(w,0); w