| System Functions |
|
| Format | IOR(value1[$],value2[$][,ERR=stmtref]) Where: |
||||
| stmtref | Program line number or statement label to which to transfer control. | ||||
| value1[$] | Compared values. String or numeric expressions/variables. If strings, | ||||
| value2[$] | value1$ must be the same length as value2$ | ||||
| Returns | Result of logical 'OR' comparison of two expressions/variables. | ||||
| Description | The IOR( ) function performs a bit-wise logical 'OR' comparison of two string or numeric expressions/variables, and generates a value as a result. The length of the two string expressions must be equal or ProvideX returns an Error #46: Length of string invalid. |
||||
| Binary | Result | ||||
| 0 IOR 0 0 | |||||
| 1 IOR 0 1 | |||||
| 0 IOR 1 1 | |||||
| 1 IOR 1 1 | |||||
| Therefore |
|||||
| IOR($41$,$42$) | yields Hex 43 01000011 | ||||
| IOR($41$,$25$) | yields Hex 65 01100101 | ||||
| IOR($5A$,$DD$) | yields Hex DF 11011111 | ||||
| See Also | XOR( ) Exclusive OR Comparison AND( ) Logical AND |
||||
| Example | 0040 READ (1,END=1000)F$ 0050 R$=IOR(F$(1,2),$8080$) ! Turn on high bit 0060 ... |
||||