Jump to content

Logical and and logical or

From Squishu Wiki

General

Syntax

statement1 && statement2 && statement3 && statement4 
statement1 || statement2 || statement3 || statement4

Examples

  • and and or work the same way
if [ -f file_one ] && [ -f file_two ] && [ -f file_three ] && [ -f file_four ]