语法
Logical.FromText(text as nullable text) as nullable logical
简介
从文本值“true”或“false”创建逻辑值 text
。 如果 text
包含其他字符串,则会引发异常。 文本值 text
不区分大小写。
示例 1
从文本字符串“true”创建逻辑值。
使用情况
Logical.FromText("true")
输出
true
示例 2
从文本字符串“a”创建逻辑值。
使用情况
Logical.FromText("a")
输出
[Expression.Error] Could not convert to a logical.