Following is the general form of a typical decision making structure found in most of the programming languages −
Erlang programming language provides the following types of decision making statements.| S.No. | Statement & Description |
|---|---|
| 1 | If statement An if statement consists of a Boolean expression followed by one or more statements. |
| 2 | Multiple Expression The if expression also allows for multiple expressions to be evaluated at once. |
| 3 | Nested if Statements You can use one if or else if statement inside another if or else if statement(s). |
| 4 | Case Statements It can be used to execute expressions based on the output of the case statement. |
No comments:
Post a Comment