你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

not()

Applies to: ✅ Microsoft FabricAzure Data ExplorerAzure MonitorMicrosoft Sentinel

Reverses the value of its bool argument.

Syntax

not(expr)

Learn more about syntax conventions.

Parameters

Name Type Required Description
expr scalar ✔️ An expression that evaluates to a boolean value. The result of this expression will be reversed.

Returns

Returns the reversed logical value of its bool argument.

Example

Run the query

print not(false) == true

Output

print_0
true