array.new_bool

A new array<bool> with `size` elements, all set to initial_value (default false). Keep it in a var to grow it across bars; a plain variable gets a new array on every bar.

array.new_bool(size: int = 0, initial_value: bool = false) -> array<bool>

Parameters

Example

var hits = array.new_bool(10)