ISLOGICAL

适用于:计算列计算表度量值视觉对象计算

检查值是否为逻辑值(TRUE 或 FALSE),并返回 TRUE 或 FALSE。

语法

ISLOGICAL(<value>)  

parameters

术语 定义
要测试的值。

返回值

如果值为逻辑值,则为 TRUE;如果有不为 TRUE 或 FALSE 的值,则为 FALSE。

备注

在已计算的列或行级安全性 (RLS) 规则中使用时,不支持在 DirectQuery 模式下使用此函数。

示例

以下三个示例显示了 ISLOGICAL 的行为。

//RETURNS: Is Boolean type or Logical  
= IF(ISLOGICAL(true), "Is Boolean type or Logical", "Is different type")  
  
//RETURNS: Is Boolean type or Logical  
= IF(ISLOGICAL(false), "Is Boolean type or Logical", "Is different type")  
  
//RETURNS: Is different type  
= IF(ISLOGICAL(25), "Is Boolean type or Logical", "Is different type")  

信息函数