Go - Decision Making
Go - Decision Making : Decision making systems require that the programmer specify one or more situations to be evaluatedGo programming language provides the following types of decision making statements. There are following links to check their detail.
|Sr.No||Statement & Description|
An if statement consists of a boolean expression followed through one or more statements.
An if statement can be followed by using an non-obligatory else statement, which executes when the boolean expression is fake.
nested if statements
You can use one if or else if statement inner another if or else if statement(s).
A switch statement lets in a variable to be examined for equality in opposition to a list of values.
A select statement is similar to transfer statement with difference that case statements refers to channel communications.