not()

Applies to: ✅ Azure 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