mirror of
https://github.com/A2osX/A2osX.git
synced 2024-11-23 07:35:19 +00:00
110 lines
2.6 KiB
Plaintext
110 lines
2.6 KiB
Plaintext
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
|