Garry's Mod Wiki

string.StartWith

boolean string.StartWith( string inputStr, string start )

Description

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

Arguments

1 string inputStr
String to check.
2 string start
String to check with.

Returns

1 boolean
Whether the first string starts with the second.

Example

Demonstrates the use of string.StartWith

print(string.StartWith("hello there", "hell"))
Output: true

Page Links


Special Pages


Wikis

?

Render Time: 24ms

DB GetPage 4
Generate Html 4
SaveChanges (1) 8
Render Body 0
Render Sidebar 6