Skip to content

tm_strcontains Function

tm_strcontains function checks whether a substring is within another string.

tm_strcontains(string, substr)

Examples

sh
tm_strcontains("hello world", "wor")
true

tm_strcontains("hello world", "wod")
false
  • tm_startswith takes two values: a string to check and a prefix string. The function returns true if the string begins with that exact prefix.
  • tm_endswith takes two values: a string to check and a suffix string. The function returns true if the first string ends with that exact suffix.