
F# Decision-Making structures require that the programmer specify one or more conditions to be evaluated or tested by the program.
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.
Sr.No | Statement & Description |
---|---|
1 | if /then statement (AnĀ if/then statementĀ consists of a Boolean expression followed by one or more statements). |
2 | if/then/ else statement (AnĀ if/then statementĀ can be followed by an optionalĀ else statement,Ā which executes when the Boolean expression is false). |
3 | if/then/elif/else statement (AnĀ if/then/elif/elseĀ statement allows you to have multiple else branches). |
4 | nested if statements (You can use oneĀ ifĀ orĀ else ifĀ statement inside anotherĀ ifĀ orĀ else ifĀ statement(s)). |
Pingback: F# - Operators - Adglob Infosystem Pvt Ltd