-
Lets Understand Conditional-Logic
-
To Check the status of the rocket use below command:
$ rocket-status lunar-mission -
To debug the status of the rocket.
$ rocket-debug lunar-mission
-
ifis defined asif [ $rocket_status = "failed" ] then rocket-debug $mission_name fi -
elifcondition is defined asif [ $rocket_status = "failed" ] then rocket-debug $mission_name elif [ $rocket_status = "success" ] then echo "This is successful" fi -
elseis written asif [ -d "/home/bob/caleston" ] then echo "Directory exists" else echo "Directory not found"
-