in String (VBS2)
From Bohemia Interactive Community
| Editors, please check Policy: Scripting Command Page Syntax. |
Click on the images for descriptions
Introduced in
- Game:
- Virtual Battlespace 2
- Version:
- 1.18
Description
- Description:
- Checks whether a substring is contained in another string.
Search is case-sensitive.
Syntax
- Syntax:
- sub in main
- Parameters:
- sub: String - String that is being searched for
- main: String - String that is being searched
- Return Value:
- Boolean
Examples
- Example 1:
_hastwo = "two" in "onetwothree"Result is true

