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

!AWNov93/Goodies/RISC_OS/!Variables/Variables/If

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/!Variables/Variables/If
Read OK:
File size: 019E bytes
Load address: 0000
Exec address: 0000
File contents
Echo
Help If
Echo
Echo ==========================================================
Echo  References:
Echo
Echo  1.  "User Guide" (RISCOS 3)   page 183
Echo  2.  "Programmers Reference Manual" (RISCOS 3) page 1-483
Echo
Echo ==========================================================
Echo
Echo Example 1     *If "|<variable|>"="" THEN Echo "No such variable" ELSE Echo"variable exists"   
Echo ---------
Echo 
Echo 
00000000  45 63 68 6f 0a 48 65 6c  70 20 49 66 0a 45 63 68  |Echo.Help If.Ech|
00000010  6f 0a 45 63 68 6f 20 3d  3d 3d 3d 3d 3d 3d 3d 3d  |o.Echo =========|
00000020  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
*
00000050  3d 0a 45 63 68 6f 20 20  52 65 66 65 72 65 6e 63  |=.Echo  Referenc|
00000060  65 73 3a 0a 45 63 68 6f  0a 45 63 68 6f 20 20 31  |es:.Echo.Echo  1|
00000070  2e 20 20 22 55 73 65 72  20 47 75 69 64 65 22 20  |.  "User Guide" |
00000080  28 52 49 53 43 4f 53 20  33 29 20 20 20 70 61 67  |(RISCOS 3)   pag|
00000090  65 20 31 38 33 0a 45 63  68 6f 20 20 32 2e 20 20  |e 183.Echo  2.  |
000000a0  22 50 72 6f 67 72 61 6d  6d 65 72 73 20 52 65 66  |"Programmers Ref|
000000b0  65 72 65 6e 63 65 20 4d  61 6e 75 61 6c 22 20 28  |erence Manual" (|
000000c0  52 49 53 43 4f 53 20 33  29 20 70 61 67 65 20 31  |RISCOS 3) page 1|
000000d0  2d 34 38 33 0a 45 63 68  6f 0a 45 63 68 6f 20 3d  |-483.Echo.Echo =|
000000e0  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
*
00000110  3d 3d 3d 3d 3d 3d 3d 3d  3d 0a 45 63 68 6f 0a 45  |=========.Echo.E|
00000120  63 68 6f 20 45 78 61 6d  70 6c 65 20 31 20 20 20  |cho Example 1   |
00000130  20 20 2a 49 66 20 22 7c  3c 76 61 72 69 61 62 6c  |  *If "|<variabl|
00000140  65 7c 3e 22 3d 22 22 20  54 48 45 4e 20 45 63 68  |e|>"="" THEN Ech|
00000150  6f 20 22 4e 6f 20 73 75  63 68 20 76 61 72 69 61  |o "No such varia|
00000160  62 6c 65 22 20 45 4c 53  45 20 45 63 68 6f 22 76  |ble" ELSE Echo"v|
00000170  61 72 69 61 62 6c 65 20  65 78 69 73 74 73 22 20  |ariable exists" |
00000180  20 20 0a 45 63 68 6f 20  2d 2d 2d 2d 2d 2d 2d 2d  |  .Echo --------|
00000190  2d 0a 45 63 68 6f 20 0a  45 63 68 6f 20 0a        |-.Echo .Echo .|
0000019e