Platform

platform - Specifies the current operating platform

Synopsis
...
 * 1) print ${platform}
 * 2) if ${platform}=WINDOWS|LINUX|MACOSX
 * 1) endif

Description
The platform global variable is set according to which operating platform is running GridLAB-D.

The platform global variable cannot be set at runtime.

WINDOWS
When the host system is a Microsoft Windows system, platform is set to WINDOWS.

LINUX
When the host system is a Linux system, platform is set to LINUX.

MACOSX
When the host system is an Apple Mac OSX system, platform is set to MACOSX.