# Get (SystemPlatform)

**URL:** <https://the.fmsoup.org/t/get-systemplatform/3026>\
**Category:** Lounge (Discussions)\
**Tags:** windows\
**Created:** [July 31, 2022, 4:25pm UTC](https://the.fmsoup.org/t/get-systemplatform/3026 "2022-07-31T16:25:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![steverichter](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/steverichter/32/1022_2.png) [@steverichter](https://the.fmsoup.org/u/steverichter)\
**Post date:** [July 31, 2022, 4:25pm UTC](https://the.fmsoup.org/t/get-systemplatform/3026/1 "2022-07-31T16:25:37Z")

</div>

Get (SystemPlatform) returns a positive number, except for Windows. Anybody have insight into why Windows is assigned a negative number?

•1 if the current platform is Intel-based Macs

•-2 if the platform is Windows

•3 if the platform is iOS

•4 if the platform is FileMaker WebDirect

---

<div class="post-metadata">

**Author:** ![OliverBarrett](https://avatars.discourse-cdn.com/v4/letter/o/f19dbf/32.png) [@OliverBarrett](https://the.fmsoup.org/u/OliverBarrett)\
**Post date:** [July 31, 2022, 4:44pm UTC](https://the.fmsoup.org/t/get-systemplatform/3026/2 "2022-07-31T16:44:00Z")

</div>

Do I have to say it? LOL.

Not that you were asking for a workaround, but in Java, getting the OS name is a one-liner: System.getProperty("os.name"). You can also easily get the version, architecture, and other system properties. Using this approach, I've never had an issue where I didn't get back what I expected regardless of the Windows version.
