ISLOGICAL 関数

値が論理値かどうか (TRUE または FALSE) を調べ、TRUE または FALSE を返します。

構文

ISLOGICAL(<value>)

パラメーター

項目

定義

value

テストする値。

プロパティ値/戻り値

value が論理値の場合は TRUE を返し、value が TRUE でも FALSE でもない場合は FALSE を返します。

使用例

次の 3 つの例で、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")

関連項目

その他の技術情報

情報関数 (DAX)