A2osX/EXAMPLES/ORTESTS.txt
2019-11-21 22:40:02 -05:00

110 lines
2.6 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

NEW
PREFIX
AUTO 4,1
#!/BIN/SH
#
# Complex OR OR Tests
#
SET A = 1
SET B = 2
SET C = 3
SET D = 4
ECHO -N "TRUE OR TRUE OR TRUE OR TRUE ---> "
IF [ $A -eq 1 ] OR [ $B -eq 2 ] OR [ $C -eq 3 ] OR [ $D -eq 4 ]
ECHO TRUE
ELSE
ECHO FALSE
FI
ECHO -N "TRUE OR TRUE OR TRUE OR FALSE ---> "
IF [ $A -eq 1 ] OR [ $B -eq 2 ] OR [ $C -eq 3 ] OR [ $D -ne 4 ]
ECHO TRUE
ELSE
ECHO FALSE
FI
ECHO -N "TRUE OR TRUE OR FALSE OR TRUE ---> "
IF [ $A -eq 1 ] OR [ $B -eq 2 ] OR [ $C -ne 3 ] OR [ $D -eq 4 ]
ECHO TRUE
ELSE
ECHO FALSE
FI
ECHO -N "TRUE OR TRUE OR FALSE OR FALSE ---> "
IF [ $A -eq 1 ] OR [ $B -eq 2 ] OR [ $C -ne 3 ] OR [ $D -ne 4 ]
ECHO TRUE
ELSE
ECHO FALSE
FI
ECHO -N "TRUE OR FALSE OR TRUE OR TRUE ---> "
IF [ $A -eq 1 ] OR [ $B -ne 2 ] OR [ $C -eq 3 ] OR [ $D -eq 4 ]
ECHO TRUE
ELSE
ECHO FALSE
FI
ECHO -N "TRUE OR FALSE OR TRUE OR FALSE ---> "
IF [ $A -eq 1 ] OR [ $B -ne 2 ] OR [ $C -eq 3 ] OR [ $D -ne 4 ]
ECHO TRUE
ELSE
ECHO FALSE
FI
ECHO -N "TRUE OR FALSE OR FALSE OR TRUE ---> "
IF [ $A -eq 1 ] OR [ $B -ne 2 ] OR [ $C -ne 3 ] OR [ $D -eq 4 ]
ECHO TRUE
ELSE
ECHO FALSE
FI
ECHO -N "TRUE OR FALSE OR FALSE OR FALSE ---> "
IF [ $A -eq 1 ] OR [ $B -ne 2 ] OR [ $C -ne 3 ] OR [ $D -ne 4 ]
ECHO TRUE
ELSE
ECHO FALSE
FI
ECHO -N "FALSE OR TRUE OR TRUE OR TRUE ---> "
IF [ $A -ne 1 ] OR [ $B -eq 2 ] OR [ $C -eq 3 ] OR [ $D -eq 4 ]
ECHO TRUE
ELSE
ECHO FALSE
FI
ECHO -N "FALSE OR TRUE OR TRUE OR FALSE ---> "
IF [ $A -ne 1 ] OR [ $B -eq 2 ] OR [ $C -eq 3 ] OR [ $D -ne 4 ]
ECHO TRUE
ELSE
ECHO FALSE
FI
ECHO -N "FALSE OR TRUE OR FALSE OR TRUE ---> "
IF [ $A -ne 1 ] OR [ $B -eq 2 ] OR [ $C -ne 3 ] OR [ $D -eq 4 ]
ECHO TRUE
ELSE
ECHO FALSE
FI
ECHO -N "FALSE OR TRUE OR FALSE OR FALSE ---> "
IF [ $A -ne 1 ] OR [ $B -eq 2 ] OR [ $C -ne 3 ] OR [ $D -ne 4 ]
ECHO TRUE
ELSE
ECHO FALSE
FI
ECHO -N "FALSE OR FALSE OR TRUE OR TRUE ---> "
IF [ $A -ne 1 ] OR [ $B -ne 2 ] OR [ $C -eq 3 ] OR [ $D -eq 4 ]
ECHO TRUE
ELSE
ECHO FALSE
FI
ECHO -N "FALSE OR FALSE OR TRUE OR FALSE ---> "
IF [ $A -ne 1 ] OR [ $B -ne 2 ] OR [ $C -eq 3 ] OR [ $D -ne 4 ]
ECHO TRUE
ELSE
ECHO FALSE
FI
ECHO -N "FALSE OR FALSE OR FALSE OR TRUE ---> "
IF [ $A -ne 1 ] OR [ $B -ne 2 ] OR [ $C -ne 3 ] OR [ $D -eq 4 ]
ECHO TRUE
ELSE
ECHO FALSE
FI
ECHO -N "FALSE OR FALSE OR FALSE OR FALSE ---> "
IF [ $A -ne 1 ] OR [ $B -ne 2 ] OR [ $C -ne 3 ] OR [ $D -ne 4 ]
ECHO TRUE
ELSE
ECHO FALSE
FI
MAN
TEXT /MAKE/USR/SHARE/EXAMPLES/ORTESTS