📅  最后修改于: 2020-11-04 06:55:46             🧑  作者: Mango
决策制定是一项功能,允许程序员在代码流中应用条件。程序员可以根据预定义的条件执行一组指令。以下流程图显示了Haskell的决策结构-
Haskell提供以下类型的决策声明-
Sr.No. | Statement & Description |
---|---|
1 | if–else statement
One if statement with an else statement. The instruction in the else block will execute only when the given Boolean condition fails to satisfy. |
2 | Nested if-else statement
Multiple if blocks followed by else blocks |