Garry's Mod Wiki

Garry's Mod Wiki

  boolean string.StartWith( string inputStr, string start )


We advise against using this. It may be changed or removed in a future update. Use string.StartsWith.

Returns whether or not the first string starts with the second. This is a alias of string.StartsWith.


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


1 boolean
Whether the first string starts with the second.


Demonstrates the use of string.StartWith

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

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...