Following is the general form of a typical decision making structure found in most of the programming languages −
F# programming language provides the following types of decision making statements.| Statement | Description |
|---|---|
| if /then statement | An if/then statement consists of a Boolean expression followed by one or more statements. |
| if/then/ else statement | An if/then statement can be followed by an optional else statement, which executes when the Boolean expression is false. |
| if/then/elif/else statement | An if/then/elif/else statement allows you to have multiple else branches. |
| nested if statements | You can use one if or else if statement inside another if or else if statement(s). |
No comments:
Post a Comment