以下是大多数编程语言中常见的典型条件判断的一般形式-

F#编程语言提供以下类型的决策声明。
| Sr.No | Statement & 描述 |
|---|---|
| 1 |
if/then statement if/then语句由一个布尔表达式和一个或多个语句组成。 |
| 2 |
if/then/else statement 在 if/then语句之后可以跟可选的 else语句,该语句在布尔表达式为false时执行。 |
| 3 |
if/then/elif/else statement if/then/elif/else 语句允许您具有多个else分支。 |
| 4 |
nested if statements 您可以在另一个 if 或 else if 语句中使用一个 if 或 else if 语句。 |