Skip to main content

is_leaf

Synopsis​

@is_leaf() -> Boolean

Description​

Checks if the object is at the leaf position in 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 leaf position in the tree, false otherwise.

Examples​

@is_leaf() && object_type == "Image"
  • This matches Image objects at leaf positions.