Revision Difference
string.StartsWith#547833
<function name="StartsWith" parent="string" type="libraryfunc">
<added>2022.08.02</added>⤶
<added>2022.08.12</added>⤶
<description>Returns whether or not the first string starts with the second.</description>
<realm>Shared and Menu</realm>
<file line="302-L306">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.StartsWith</description>
<output>true</output>
<code>print(string.StartsWith("hello there", "hell"))</code>
</example>