{"name":"BIS_fnc_inString","operator":null,"title":"BIS fnc inString","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_inString","revid":376478,"updated":"2025-10-18T18:39:39Z","groups":["Strings"],"status":"deprecated","replaced_by":["find","in"],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"> [!CAUTION]\n> This information is **obsolete**. See find and in commands's alternative syntaxes that replace this function.\n\nFind a string within a string.","syntaxes":[{"syntax":"[searchTerm, searchText, caseSensitive] call BIS_fnc_inString","since":null,"effect":null,"exec":null,"params":[{"name":"searchTerm","type":"String","optional":false,"default":null,"description":"string to find","types":["String"],"since":null,"text":"searchTerm: String - string to find"},{"name":"searchText","type":"String","optional":false,"default":null,"description":"string to search in","types":["String"],"since":null,"text":"searchText: String - string to search in"},{"name":"caseSensitive (optional)","type":"Boolean","optional":false,"default":null,"description":"defines whether the search is case-sensitive (true) or not (false, by default)","types":["Boolean"],"since":null,"text":"caseSensitive (optional): Boolean - defines whether the search is case-sensitive (true) or not (false, by default)"}],"returns":{"type":"Boolean","types":["Boolean"],"description":"true if search term is found, false if not","text":"Boolean - true if search term is found, false if not"}}],"examples":[{"text":"```sqf\n[\"rabbit\", \"I ate a rabbit today\"] call BIS_fnc_inString // will return true\n```","code":["[\"rabbit\", \"I ate a rabbit today\"] call BIS_fnc_inString // will return true"]},{"text":"```sqf\n[\"RaBbiT\", \"I ate a rabbit today\"] call BIS_fnc_inString // will return true\n```","code":["[\"RaBbiT\", \"I ate a rabbit today\"] call BIS_fnc_inString // will return true"]},{"text":"```sqf\n[\"RaBbiT\", \"I ate a rabbit today\", true] call BIS_fnc_inString // will return false because of case sensitivity\n```","code":["[\"RaBbiT\", \"I ate a rabbit today\", true] call BIS_fnc_inString // will return false because of case sensitivity"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["find","BIS_fnc_filterString","splitString","joinString"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Strings","Functions","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}