string.upper(str)function

Converts all lowercase characters in a string into uppercase characters.

Parameters

str

The string to be used to produce a string with uppercase characters.

Return value

Returns a new string with the same content but uppercase characters.

Example

--! luart-extensions import console print('Enter your name : ') local name = console.readln(); if name == name:upper() then print("Please don't shout !") else print('Hi '..name..' !') end