Skip to main content

is_root

Synopsis

@is_root() -> Boolean

Description

Checks if the object is at the root node of the tree.

info

Available in Contextal Platform 1.0 and later.

Parameters

The function doesn't accept any arguments.

Return value

Boolean: true if the object is at the root position in the tree, false otherwise.

Examples

@is_root() && object_type == "Email"
  • This matches Email type root (entry) objects.