• Projects
  • Skillset
  • Resources
  • Posts
  • About
  • Projects
  • Skillset
  • Resources
  • Posts
  • About

contains

  • Notion Formulas
  • Introduction
  • The Editor
  • Data
    • Data Types
      • String
      • Number
      • Boolean
      • Date
      • List
      • Person
      • Page
    • Properties
      • Title
      • Text
      • Number
      • Select
      • Multi-select
      • Status
      • Date
      • Person
      • Files & Media
      • Checkbox
      • URL
      • Email
      • Phone
      • Formula
      • Relation
      • Rollup
      • Created Time
      • Created By
      • Last Edited Time
      • Last Edited By
      • ID
  • Elements
    • Functions
      • if
      • ifs
      • and
      • or
      • not
      • empty
      • length
      • substring
      • contains
      • test
      • match
      • replace
      • replaceAll
      • lower
      • upper
      • repeat
      • padStart
      • padEnd
      • link
      • style
      • unstyle
      • format
      • add
      • subtract
      • multiply
      • mod
      • pow
      • divide
      • min
      • max
      • sum
      • median
      • mean
      • abs
      • round
      • ceil
      • floor
      • sqrt
      • cbrt
      • exp
      • ln
      • log10
      • log2
      • sign
      • pi
      • e
      • toNumber
      • now
      • today
      • minute
      • hour
      • day
      • date
      • week
      • month
      • year
      • dateAdd
      • dateSubtract
      • dateBetween
      • dateRange
      • dateStart
      • dateEnd
      • timestamp
      • fromTimestamp
      • formatDate
      • parseDate
      • name
      • email
      • at
      • first
      • last
      • slice
      • concat
      • sort
      • reverse
      • join
      • split
      • unique
      • includes
      • find
      • findIndex
      • filter
      • some
      • every
      • map
      • flat
      • id
      • equal
      • unequal
      • let
      • lets
    • Operators
      • +
      • -
      • *
      • %
      • ^
      • /
      • ==
      • !=
      • >
      • >=
      • <
      • <=
      • && · and
      • || · or
      • ! · not
      • ? :
    • Booleans
      • true
      • false
    • Variables
      • current
      • index
  • More
    • Examples
      • Outline Numbering
    • Automations
    • Errors
Functions
/
contains
Returns true if the search string is present in the value.
Accepts
All Data Types
Returns
Boolean
Syntax
contains(value, search) value.contains(search)

contains("bensomething", "thing")
=
true

contains is case-sensitive, so the following will return false.

contains("bensomething", "Thing")
=
false

Additional Links

  • contains Companion Page notion.cool
Functions
←
substring
→
Functions
test
© Ben Smith
  • Email
  • Bluesky
Mastodon