Arma 3 Scripting

BIS_fnc_inString

  • Deprecated
  • Arma 3 v1.00

Function · Markdown · JSON · original wiki page

Warning

This function is deprecated. Use find or in instead.

Description

Caution

This information is obsolete. Reason: See find and in commands's alternative syntaxes that replace this function.

Find a string within a string.

Syntax

[searchTerm, searchText, caseSensitive] call BIS_fnc_inString

Parameters:

Returns: Boolean - true if search term is found, false if not

Examples

Example 1

["rabbit", "I ate a rabbit today"] call BIS_fnc_inString // will return true

Example 2

["RaBbiT", "I ate a rabbit today"] call BIS_fnc_inString // will return true

Example 3

["RaBbiT", "I ate a rabbit today", true] call BIS_fnc_inString // will return false because of case sensitivity

See also

find · BIS_fnc_filterString · splitString · joinString