get

Places the value of an expression in the it variable.

# Metadata

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

# Syntax

get expression

# Params

- expression : Any expression that yields a value.

# Examples

get the colors of button 1

get 2 * 25 * pi -- gets circumference of circle with radius 25

get message -- evaluates expression in message box

get URL "https://www.livecode.com"

# Description

Use the get command to fetch the value of an expression.

The get command is a shorthand way of writing the following statement:

put expression into it

> *Note:* When specifying URLs for iOS or Android, you must use the > appropriate form that conforms to [RFC > 1738](https://tools.ietf.org/html/rfc1738). Ensure that you > URLEncode any username and password fields appropriately for FTP > URLs. The Android and iOS engines do not support 'libUrl', which > would allow characters such as @ in the username.

# Tags

# See

- **keyword:** it - **command:** post, unload, put, libURLSetFTPStopTime, load, set, libURLSetLogField - **function:** value, URLEncode - **control structure:** getProp - **glossary:** expression, command, variable