Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
In this article
Applies to: ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
Convert inputs to boolean (signed 8-bit) representation.
The
tobool()
andtoboolean()
functions are equivalent
Note
When possible, use bool literals instead.
tobool(
value)
Learn more about syntax conventions.
Name | Type | Required | Description |
---|---|---|---|
value | string |
✔️ | The value to convert to boolean. |
If conversion is successful, result will be a boolean.
If conversion isn't successful, result will be null
.
tobool("true") == true
tobool("false") == false
tobool(1) == true
tobool(123) == true