🔵 🔵 🔵


Primary

၊၊||၊|။

contains() ⚬ᵈᵛ|Documentation|1st|20251021122004-00-⌔

Functions - Dataview#containsobjectliststring-value

contains(object|list|string, value)

Checks if the given container type has the given value in it. This function behave slightly differently based on whether the first argument is an object, a list, or a string. This function is case-sensitive.

  • For objects, checks if the object has a key with the given name. For example,
contains(file, "ctime") = true
contains(file, "day") = true (if file has a date in its title, false otherwise)
  • For lists, checks if any of the array elements equals the given value. For example,
contains(list(1, 2, 3), 3) = true
contains(list(), 1) = false
  • For strings, checks if the given value is a substring (i.e., inside) the string.
contains("hello", "lo") = true
contains("yes", "no") = false

Printed 2026-06-28.

(echo:: @ )

Link to original

Secondary

• • •