This version of the Help is no longer updated. See JMP.com/help for the latest version.

.
Scripting Guide > JSL Building Blocks > Inquiry Functions
Publication date: 07/30/2020

Inquiry Functions

Inquiry functions identify the type of an element, such as a string, list, or matrix. You can then write a script specific to that element type.

JMP also uses inquiry functions to determine the writability of a directory or file and to identify a computer’s operating system and the JMP version.

General Element Types

The Type() function returns a string naming the type of the resulting value. For example:

Show( Type( 1 ), Type( "hi" ), Type( {"a", 2} ), Type( [10 24 325] ) );

results in:

Type(1) = "Integer"

Type("hi") = "String"

Type({"a", 2}) = "List"

Type([10 24 325]) = "Matrix";

Want more information? Have questions? Get answers in the JMP User Community (community.jmp.com).