Get (SystemPlatform)

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

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.