Glossary: Command Line for IT: Bash and PowerShell
if
Also written: elif, else, fi
In bash, if runs a block when a command (usually a [ ] test) succeeds; elif adds another test, else covers the rest, and fi ends it. PowerShell writes if () { } else { }.