Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

and in bash

Logical AND (&&)

if [1 -gt 0 ] && [ 2 -gt 1 ]; then 
	echo 1;
fi
 
 Logical OR (||)
 
 if [1 -gt 0 ] || [ 2 -gt 1 ]; then 
	echo 1;
 fi
 
PREVIOUS NEXT
Tagged: #bash
ADD COMMENT
Topic
Name
6+2 =