Skip to content

MySQL_GetJSONBool

imshooter edited this page Oct 24, 2026 · 1 revision

A value of a JSON cell as a bool.

native bool:MySQL_GetJSONBool(row, const field[], const key[], bool:fallback = false);

Parameters

Parameter Description Default
row The row, from 0.
const field[] Name of the field.
const key[] Member of the top object or a JSON Pointer.
bool:fallback What it gives when the value does not exist, is null, or is an object or an array. false

Remarks

A number reads as true when it is not 0, and a string as MySQL_GetBool reads a cell.

Related

Clone this wiki locally