constantNames

returns a list of all built-in constants in LiveCode.

# Metadata

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

# Syntax

the constantNames

# Examples

the constantNames

if it is among the lines of the constantNames then askForAnotherName

# Description

Use the constantNames function to check whether a particular constant already exists in LiveCode, to avoid using a reserved word for your own constants and variables.

The constantNames function returns all the constants that are predefined in LiveCode, including synonyms.

# Tags

# See

- **keyword:** line - **command:** constant - **function:** propertyNames, functionNames - **control structure:** function - **glossary:** constant, LiveCode, variable, return, reserved word