Home » Archimedes archive » Archimedes World » AW-1993-11.adf » AWNov93 » !AWNov93/Goodies/RISC_OS/Examples/Example_4b

!AWNov93/Goodies/RISC_OS/Examples/Example_4b

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 » Archimedes World » AW-1993-11.adf » AWNov93
Filename: !AWNov93/Goodies/RISC_OS/Examples/Example_4b
Read OK:
File size: 0144 bytes
Load address: 0000
Exec address: 0000
File contents
|  Archimedes World Guide to RISCOS_CLI      "VARIABLES"

|  Program : Example 4b
   
|  Purpose : Illustrates the use of SetMacro
|
|            N.B. vertical slash indicates a comment (like "REM" in BASIC)
 

IF "<a>"=""  THEN Echo Run Example 4a first ELSE Eval a
IF "<b>"=""  THEN Echo Run Example 4a first ELSE Eval b

00000000  7c 20 20 41 72 63 68 69  6d 65 64 65 73 20 57 6f  ||  Archimedes Wo|
00000010  72 6c 64 20 47 75 69 64  65 20 74 6f 20 52 49 53  |rld Guide to RIS|
00000020  43 4f 53 5f 43 4c 49 20  20 20 20 20 20 22 56 41  |COS_CLI      "VA|
00000030  52 49 41 42 4c 45 53 22  0a 0a 7c 20 20 50 72 6f  |RIABLES"..|  Pro|
00000040  67 72 61 6d 20 3a 20 45  78 61 6d 70 6c 65 20 34  |gram : Example 4|
00000050  62 0a 20 20 20 0a 7c 20  20 50 75 72 70 6f 73 65  |b.   .|  Purpose|
00000060  20 3a 20 49 6c 6c 75 73  74 72 61 74 65 73 20 74  | : Illustrates t|
00000070  68 65 20 75 73 65 20 6f  66 20 53 65 74 4d 61 63  |he use of SetMac|
00000080  72 6f 0a 7c 0a 7c 20 20  20 20 20 20 20 20 20 20  |ro.|.|          |
00000090  20 20 4e 2e 42 2e 20 76  65 72 74 69 63 61 6c 20  |  N.B. vertical |
000000a0  73 6c 61 73 68 20 69 6e  64 69 63 61 74 65 73 20  |slash indicates |
000000b0  61 20 63 6f 6d 6d 65 6e  74 20 28 6c 69 6b 65 20  |a comment (like |
000000c0  22 52 45 4d 22 20 69 6e  20 42 41 53 49 43 29 0a  |"REM" in BASIC).|
000000d0  20 0a 0a 49 46 20 22 3c  61 3e 22 3d 22 22 20 20  | ..IF "<a>"=""  |
000000e0  54 48 45 4e 20 45 63 68  6f 20 52 75 6e 20 45 78  |THEN Echo Run Ex|
000000f0  61 6d 70 6c 65 20 34 61  20 66 69 72 73 74 20 45  |ample 4a first E|
00000100  4c 53 45 20 45 76 61 6c  20 61 0a 49 46 20 22 3c  |LSE Eval a.IF "<|
00000110  62 3e 22 3d 22 22 20 20  54 48 45 4e 20 45 63 68  |b>"=""  THEN Ech|
00000120  6f 20 52 75 6e 20 45 78  61 6d 70 6c 65 20 34 61  |o Run Example 4a|
00000130  20 66 69 72 73 74 20 45  4c 53 45 20 45 76 61 6c  | first ELSE Eval|
00000140  20 62 0a 0a                                       | b..|
00000144