Get(SystemPlatform)

Returns a number representing the current platform.

Format 

Get ( SystemPlatform )

Parameters 

None

Data type returned 

number

Originated in version 

6.0 or earlier

Description 

Returns:

  • 1 if the current platform is macOS
  • -2 if the platform is Windows
  • 3 if the platform is iOS or iPadOS
  • 4 if the platform is FileMaker WebDirect
  • 5 if the platform is Linux

Example 1 

Get(SystemPlatform) returns -2 when the current platform is a Windows platform.

Abs(Get(SystemPlatform)) returns 1 when the current platform is macOS.