From GridLAB-D Wiki
Jump to: navigation, search

platform - Specifies the current operating platform

Synopsis

#print ${platform}
#if ${platform}=WINDOWS|LINUX|MACOSX
...
#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.

See also