Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!gatech!udel!mmdf From: ISCOVE%UTOROCI.BITNET@cornellc.cit.cornell.edu Newsgroups: comp.sys.amiga Subject: c/EVAL for loop counting Message-ID: <10437@louie.udel.EDU> Date: 9 Mar 89 01:39:16 GMT Sender: mmdf@udel.EDU Lines: 30 The Enhancer 1.3 manual p 2-12 gives the following example for use of "c/EVAL" to count loops in a script: .key loop/a .bra { .ket } echo >env:loop {loop} lab start echo "Loop #" noline type env:loop eval NIL: to=t:qwe{$$} value2=1 op=-? type >env:loop t:qwe{$$} IF val $loop GT 0 skip start back endif echo "done" In practice, the example fails when eval is called. ram:env/loop was correctly set up beforehand, and ENV: assigned as RAM:ENV. eval setenv loop 5 > type env:loop ; correctly returns 5 > eval