![]() ![]() Indentation is not essential for shell script but when it comes to best coding practice, it is always suggested to follow proper indentation. One thing we must be wary about is the indentation. This type of statement is for adding another if condition within the else block. This is a nested else if statement and acts more like the if else statement. ![]() If the condition is not satisfied one would feel like start climbing down the ladder and only stops if one condition is satisfied. This type of statement is more like a ladder. Starting from here, and the next type of if condition statement, the condition starts becoming branched. This type of statement is used when the program needs to check one condition and perform a task if the condition is satisfied or perform the other set of tasks if the condition is not. This type of condition is eventually used when the user wants to go through all the possible checks and not end the checks when one of the conditions is true. In this type of statement, only the if condition is used, which essentially means that the conditions in if conditions will be tested all along even if one of the conditions is satisfied. Web development, programming languages, Software testing & others 1. Start Your Free Software Development Course
0 Comments
Leave a Reply. |