715
edits
Changes
→Conditional statements
== Conditional statements ==
==='''Bash'''===
Conditional statements or if statements are used in scripts to add logic. You can test to see if a condition is met and change the behaviour of the script as a result of that condition. Here is a sample if statement:
<pre>
</pre>
*Python has conditional statements, we just haven't covered them yet. We will cover them in a future lecture.