This commit is contained in:
Thomas Negash 2017-11-19 21:34:39 +03:00 committed by Adnan Ahmed
parent 9fa6963334
commit 017a050473
1 changed files with 1 additions and 1 deletions

View File

@ -1028,7 +1028,7 @@ When you run the above example the `hello` function will output "world!". The ab
The conditional statement in bash is similar to other programming languages. Conditions have many form like the most basic form is `if` expression `then` statement where statement is only executed if expression is true. The conditional statement in bash is similar to other programming languages. Conditions have many form like the most basic form is `if` expression `then` statement where statement is only executed if expression is true.
```bash ```bash
if [expression]; then if [ expression ]; then
will execute only if expression is true will execute only if expression is true
else else
will execute if expression is false will execute if expression is false