ui.msg(msg , [title])

Displays a message dialog box, and waits for the user to click the OK button.

Parameters

msg

A string that indicates the message to display to the user.

title

An optional string that indicates the title of the message dialog box (defaulting to "Message")

Return value

This function returns the string "ok" once the user has pressed the OK button or after having closed the dialog.

Example

local ui = require "ui" -- Displays a "Hello World !" message ui.msg("Hello World !")