For the latest version of JMP Help, visit JMP.com/help.


Publication date: 04/30/2021

Host Information

The Host Is() inquiry function identifies the current operating system. Then actions specific to that operating system can be performed.

For example, if the operating system is Windows, the following script loads a Windows Dynamic Link Library (DLL):

If( Host is( "Windows" ),
	dll_obj = Load DLL( "C:/Windows/System32/user32.dll" )
);

You could also use Host Is() to specify text sizes in reports for different operating systems. If you commonly write your scripts on Windows and share them with macOS users, the results can look different from what you intended. For example, the following expression sets the text to a larger size on macOS and a smaller size on Windows:

textsize = If( Host is( "Mac" ), 12, 10 );
Want more information? Have questions? Get answers in the JMP User Community (community.jmp.com).