Trim()
On this page
Trim(value: Variant) -> StringRemove whitespace from both ends of text.
Returns: String.
Trim(" key ")Contains()#
Contains(value: Variant, search: Variant, case_sensitive: bool = true) -> boolSearch text for a substring, optionally ignoring case.
Returns: Boolean.
Contains("Archive Door", "door", false)Use Array.has or in for array membership; this helper converts inputs to String.
StartsWith()#
StartsWith(value: Variant, prefix: Variant, case_sensitive: bool = true) -> boolCheck the start of text.
Returns: Boolean.
StartsWith("open archive", "open ")EndsWith()#
EndsWith(value: Variant, suffix: Variant, case_sensitive: bool = true) -> boolCheck the end of text.
Returns: Boolean.
EndsWith("notes.txt", ".txt")