Function ecs_iter_is_true

Synopsis

#include <include/flecs.h>

FLECS_API bool ecs_iter_is_true(ecs_iter_t *it)

Description

Test if iterator is true. This operation will return true if the iterator returns at least one result. This is especially useful in combination with fact-checking rules (see the rules addon).

The operation requires a valid iterator. After the operation is invoked, the application should no longer invoke next on the iterator and should treat it as if the iterator is iterated until completion.

Parameters

it - The iterator.

Returns
true if the iterator returns at least one result.

Source

Line 3728 in include/flecs.h.