本文概述
- F#If-then表达式
- F#If-then示例
- 如果那么表达
- 如果是这样的话
- 如果然后是Elif梯子表达式
if boolean-expression then
expression// code to be executed
文章图片
F#If-then示例
let num = 10
if (num%2=0) then
printfn "It is even number"
输出:
It is even number
本文概述
if boolean-expression then
expression// code to be executed
let num = 10
if (num%2=0) then
printfn "It is even number"
It is even number