nanos world API Reference Unofficial documentation
Function Shared

string.EndsWith

Test whether this string ends with given string

Syntax

Lua
string.EndsWith(other_string)

Parameters

Name Type Default Description
other_string string The given string

Returns

  • boolean

Examples

Checks if string ends with text
local str = "awesome text!",local ends = str:EndsWith("text!")