Logical.FromText

语法

 Logical.FromText(text as nullable text) as nullable logical

关于

从文本值 text(“true”或“false”)创建逻辑值。 如果 text 包含不同的字符串,则会引发异常。 text 文本值不区分大小写。

示例 1

从文本字符串“true”创建逻辑值。

使用情况

Logical.FromText("true")

输出

true

示例 2

从文本字符串“a”创建逻辑值。

使用情况

Logical.FromText("a")

输出

[Expression.Error] Could not convert to a logical.

results matching ""

    No results matching ""