The if statement has the same function as other languages. It has three basic forms:
...or:
For example:-