Skip to main content

count_siblings

Synopsis

@count_siblings([Expression]) -> Integer

Description

Counts the number of sibling objects; optionally those matching the provided logical expression.

info

Available in Contextal Platform 1.0 and later.

Parameters

If no arguments are provided, all sibling objects will be counted. If a logical expression is provided, only siblings matching the expression will be counted.

Return value

Integer: number of sibling objects (meeting the criteria).

Examples

object_type = "LNK" && @count_siblings(object_type == "PE") == 1
  • This matches LNK objects, which have exactly one sibling of the PE type.