Skip to main content

The "string_upper_words" Function

Syntax#

string_upper_words(str);
ArgumentTypeDescription
strstringThe string to modify

Description#

Returns a string with the first letter of each word capitalized. Only applies to English characters A-Z.

Example#

var mystring = "hello, world!";
draw_text(25, 25, string_upper_words(mystring));
// Result: "Hello, World!"