String.endsWith: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

26 May 2024

  • curprev 10:4810:48, 26 May 2024Tracer talk contribs 871 bytes +871 Created page with "{{Useful Function}} __NOTOC__ This function checks if a string ends with other string. ==Syntax== <syntaxhighlight lang="lua"> bool string.endsWith ( string suffix ) </syntaxhighlight> ===Required Arguments=== * '''suffix''': Suffix you want to check your string against ===Returns=== Returns true if string ends with a suffix, false otherwise. ==Code== <section name="Shared script" class="both" show="true"> <syntaxhighlight lang="lua"> function string:endsWith(suffix)..."