processor

returns a string describing the system's architecture.

# Metadata

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

# Syntax

the processor

# Examples

the processor

if the processor is "arm" then ...

# Description

Use the processor function to determine the system architecture. The system architecture may either be emulated or the architecture of the host CPU. For example, when running the application in an android emulator the processor will return the emulated architecture rather than the architecture of the host CPU.

>*Note:* Some operating systems have emulators built in. For example, Windows > has WOW64 which allows x86 executables to run under x86_64 versions of > Windows.

# Tags

# See

- **keyword:** string - **function:** machine, platform - **glossary:** return