Garry's Mod Wiki

Revision Difference

string.StartWith#524490

<function name="StartWith" parent="string" type="libraryfunc"> <description>Returns whether or not the first string starts with the second.</description> <realm>Shared and Menu</realm> <file line="314">lua/includes/extensions/string.lua</file> <file line="301">lua/includes/extensions/string.lua</file> <args> <arg name="inputStr" type="string">String to check.</arg> <arg name="start" type="string">String to check with.</arg> </args> <rets> <ret name="" type="boolean">Whether the first string starts with the second.</ret> </rets> </function> <example> <description>Demonstrates the use of string.StartWith</description> <output>true</output> <code>print(string.StartWith("hello there", "hell"))</code> </example>