.contains(val)

Description

Contains returns a boolean for if a value is "contained" in the string

Parameters

Contains takes only one parameter, and will treat multiple parameters as one parameter

Usage

log "hello world".contains("hello")
// true

log "hello world".contains("1234")
// false

Last updated

Was this helpful?