Home » Archimedes archive » Acorn User » AU 1995-04.adf » !Internet_StarterPak » !SLIPdial/Resources/UK/Help/eval

!SLIPdial/Resources/UK/Help/eval

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Acorn User » AU 1995-04.adf » !Internet_StarterPak
Filename: !SLIPdial/Resources/UK/Help/eval
Read OK:
File size: 00B1 bytes
Load address: 0000
Exec address: 0000
File contents
eval <expression>
 returns result of mathematical operations (possibly on script variables).
 eg: set lemming {eval "%lemming + 1"}
   increments the value of 'lemming' by one.
00000000  65 76 61 6c 20 3c 65 78  70 72 65 73 73 69 6f 6e  |eval <expression|
00000010  3e 0a 20 72 65 74 75 72  6e 73 20 72 65 73 75 6c  |>. returns resul|
00000020  74 20 6f 66 20 6d 61 74  68 65 6d 61 74 69 63 61  |t of mathematica|
00000030  6c 20 6f 70 65 72 61 74  69 6f 6e 73 20 28 70 6f  |l operations (po|
00000040  73 73 69 62 6c 79 20 6f  6e 20 73 63 72 69 70 74  |ssibly on script|
00000050  20 76 61 72 69 61 62 6c  65 73 29 2e 0a 20 65 67  | variables).. eg|
00000060  3a 20 73 65 74 20 6c 65  6d 6d 69 6e 67 20 7b 65  |: set lemming {e|
00000070  76 61 6c 20 22 25 6c 65  6d 6d 69 6e 67 20 2b 20  |val "%lemming + |
00000080  31 22 7d 0a 20 20 20 69  6e 63 72 65 6d 65 6e 74  |1"}.   increment|
00000090  73 20 74 68 65 20 76 61  6c 75 65 20 6f 66 20 27  |s the value of '|
000000a0  6c 65 6d 6d 69 6e 67 27  20 62 79 20 6f 6e 65 2e  |lemming' by one.|
000000b0  0a                                                |.|
000000b1