Page tree
Skip to end of metadata
Go to start of metadata


Introduced in

Version:1.18

Description

Description:Checks whether a substring is contained in another string. Search is case-sensitive. A test for an empty sub-string always returns true.

Syntax

Syntax:needle in haystack
Parameters:
  • needle: String - String that is searched for.
  • haystack: String - String that is searched in.
Return Value:Boolean

Examples

Examples:
_hastwo = "two" in "onetwothree"; // returns true 

Additional Information

See also: toUpper, toLower, in Array
Multiplayer: 
Problems: 

Notes