json_array_replace_bool

Syntax

native bool:json_array_replace_bool(JSON:array, index, bool:boolean);

Usage

array
Array handle
index
Position in the array to be replaced
boolean
Boolean value to set

Description

Replaces an element in the array with boolean value.

Return

True if succeed, false otherwise

Error

If passed handle is not a valid array