mercredi 1 juin 2016

AND, OR conditions in if statement

i have the following code

elif [ $text2 == 'LANDING' ] && [ "$text4" == 'FAIL' ] || [ "$text4" == '' ]; then

the condition is that text2 should be landing and text4 can either be fail or null. How to evaluate the above command.

Please help if Im doing any wrong Thanks in advance

Aucun commentaire:

Enregistrer un commentaire