检查一个值是否为逻辑值(TRUE or FALSE)。
语法
ISLOGICAL ( <值> )
参数 | 属性 | 描述 |
值 | 要测试的值 |
返回值
标量
一个布尔值
如果测试值为逻辑值,则为 TRUE;如果有不是 TRUE 或 FALSE 的值,则为 FALSE
备注
当将此函数应用于作为表达式的列引用时,此函数将测试列的数据类型。
示例
//返回: Is Boolean type or Logical =IF(ISLOGICAL(true), "Is Boolean type or Logical", "Is different type") //返回: Is Boolean type or Logical =IF(ISLOGICAL(false), "Is Boolean type or Logical", "Is different type") //返回: Is different type =IF(ISLOGICAL(25), "Is Boolean type or Logical", "Is different type")
说点什么