F#条件声明

时间:2014-04-02 10:03:11

标签: f#

如何写点什么

if !inBoundary then do 
 printfn "no it's not within the boundary"

1 个答案:

答案 0 :(得分:4)

您可以使用not built-in function(并在do之后省略then关键字):

let inBoundary = false

if not inBoundary then
    printfn "no it's not within the boundary"