msg

A special global variable that is used with the put command when no other destination container is specified.

# Metadata

Platforms: desktop, mobile OS: mac, windows, linux, ios, android, web Introduced: 1.0 Security:

# Syntax

msg

# Examples

-- set msg to foobar put "foobar"

put "baz" after msg

# Description

When msg is modified by a command the msgChanged message is sent to the object that modified it. If the msgChanged message is unhandled or passed then the value of msg will be written to the system log or in no ui mode (command line) to stdout.

In LiveCode IDE msg and the msgChanged message are used to implement the message box.

# Tags

# See

- **keyword:** stdout - **message:** msgChanged - **command:** put - **glossary:** keyword, global, variable, message