in String (VBS2)

From Bohemia Interactive Community

Jump to: navigation, search
Editors, please check Policy: Scripting Command Page Syntax.
Introduced in Virtual Battlespace 2 version 1.18Arguments of this scripting command have to be local to the client the command is executed on

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

Additional Information

Multiplayer:
Behaviour unknown.
See also:
toUpper, toLower

Notes

Notes

+ Add Note

Only post proven facts here. Use the talk page or the forums for discussions.

Notes

Bottom Section

Personal tools
Buy ArmA now!