Garry's Mod Wiki

Garry's Mod Wiki

  boolean string.EndsWith( string str, string end )


Returns whether or not the second passed string matches the end of the first.


1 string str
The string whose end is to be checked.
2 string end
The string to be matched with the end of the first.


1 boolean
true if the first string ends with the second, or the second is empty, otherwise false.


Looks for arguments at the end of a string.

local endswith = string.EndsWith("Supercalifragilisticexpialidocious", "docious") if endswith then print("Marry Poppins") end
Marry Poppins

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...