The basic syntax of the if statement is as follows:
If the condition is determined it is True , then the execution program code segments ; if the condition determination is False , then does not execute the program code segments . If there is only one instruction in the program code segment, the above syntax can be written in the following format.
The following flowchart illustrates this if statement: