If Else

The if-else command allows you to execute some commands if a condition is true and others if it is false.

According to the logic to be implemented, there may be a need to use not just one, but a set of ifs subordinate to each other.


if condition {...} else {...}
                        
if_else.go