Count

Returns the length of a list, or the number of nodes carrying a given tag. Dual-purpose: pass a list value to get its length, or pass a tag ID to count tagged nodes.

Category: List Returns: int

Signature

Count(value)

When given a list-typed variable, returns the number of members. When given a tag ID (string), returns the total number of nodes in the project that carry that tag.

Examples

Count(var_inventory)                // how many items in inventory
Count(var_party) > 0                // is the party non-empty?
Count(tag_secret) >= 3              // at least three nodes marked secret
Count(var_visited_locations) == 5   // exactly five locations visited

For arguments: use the ID, not the UUID; see Expressions.

Docs last synced: 2026-07-08
Screenshot viewer