BIS fnc inString: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Text replacement - "\|seealso= ([^ ]+)(\]\]|\}\}), *(\[\[|\{\{)" to "|seealso= $1$2 $3") |
||
Line 21: | Line 21: | ||
|x3= <code>["RaBbiT", "I ate a rabbit today", true] call BIS_fnc_inString // will return false because of case sensitivity</code> | |x3= <code>["RaBbiT", "I ate a rabbit today", true] call BIS_fnc_inString // will return false because of case sensitivity</code> | ||
|seealso= [[find]] [[BIS_fnc_filterString]] | |seealso= [[find]] [[BIS_fnc_filterString]] [[splitString]], [[joinString]] | ||
}} | }} |
Revision as of 12:53, 1 July 2022
Description
Syntax
- Syntax:
- [searchTerm, searchText, caseSensitive] call BIS_fnc_inString
- Parameters:
- searchTerm: String - string to find
- searchText: String - string to search in
- caseSensitive (optional): Boolean - defines whether the search is case-sensitive (true) or not (false, by default)
- Return Value:
- 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
Additional Information
- See also:
- find BIS_fnc_filterString splitStringjoinString
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note