Home » Archimedes archive » Acorn User » AU 1995-04.adf » !Internet_StarterPak » !SLIPdial/Resources/UK/Help/when
!SLIPdial/Resources/UK/Help/when
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/when |
Read OK: | ✔ |
File size: | 00D6 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
when <value> [<value> ... ] ; <commands> executes the remainder of the line if one of values matches the current "case" value. Note this only acts on the rest of the same line containing the "when" statement.
00000000 77 68 65 6e 20 3c 76 61 6c 75 65 3e 20 5b 3c 76 |when <value> [<v| 00000010 61 6c 75 65 3e 20 2e 2e 2e 20 5d 20 3b 20 3c 63 |alue> ... ] ; <c| 00000020 6f 6d 6d 61 6e 64 73 3e 0a 20 65 78 65 63 75 74 |ommands>. execut| 00000030 65 73 20 74 68 65 20 72 65 6d 61 69 6e 64 65 72 |es the remainder| 00000040 20 6f 66 20 74 68 65 20 6c 69 6e 65 20 69 66 20 | of the line if | 00000050 6f 6e 65 20 6f 66 20 76 61 6c 75 65 73 20 6d 61 |one of values ma| 00000060 74 63 68 65 73 20 74 68 65 20 63 75 72 72 65 6e |tches the curren| 00000070 74 0a 20 20 22 63 61 73 65 22 20 76 61 6c 75 65 |t. "case" value| 00000080 2e 20 4e 6f 74 65 20 74 68 69 73 20 6f 6e 6c 79 |. Note this only| 00000090 20 61 63 74 73 20 6f 6e 20 74 68 65 20 72 65 73 | acts on the res| 000000a0 74 20 6f 66 20 74 68 65 20 73 61 6d 65 20 6c 69 |t of the same li| 000000b0 6e 65 20 63 6f 6e 74 61 69 6e 69 6e 67 0a 20 20 |ne containing. | 000000c0 74 68 65 20 22 77 68 65 6e 22 20 73 74 61 74 65 |the "when" state| 000000d0 6d 65 6e 74 2e 0a |ment..| 000000d6