string:endsWith¶ Parameters¶ pattern string Returns¶ true/false boolean Raise¶ None Examples¶ local my_string = 'classes is an awesome script!' if my_string:endsWith('script!') then superfunction() end