此浏览器不再受支持。
请升级到 Microsoft Edge 以使用最新的功能、安全更新和技术支持。
备注
访问此页面需要授权。 可以尝试登录或更改目录。
访问此页面需要授权。 可以尝试更改目录。
完全限定的名称:Std.Convert.BoolAsResult
function BoolAsResult(input : Bool) : Result
将 Bool 类型转换为 Result 类型,其中 true 映射到 One,false 映射到 Zero。
Bool
Result
true
One
false
Zero
要转换的 Bool。
表示 Result的 input。
input
此页面是否有帮助?
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?