You might also like...
This isn’t how other languages work. What’s going on? The reason is in the grammar of the if statement. The stuff that follows the if has to be a command.
I had trouble learning Bash. I found that I could never remember how to write simple things like an if statement.