string.StartWith

From Garry's Mod
Jump to: navigation, search
 string.StartWith( )

Contents

Description

Returns whether or not the first string starts with the second.

Arguments

string inputStr

String to check.

Arguments

string start

String to check with.

Returns

boolean

Whether the first string starts with the second.

Examples

Example

Demonstrates the use of string.StartWith

print(string.StartWith("hello there", "hell"))

Output:

true
Personal tools
Navigation