Scripting Guide > JSL Building Blocks > Inquiry Functions
发布日期: 08/07/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";

需要更多信息?有问题?从 JMP 用户社区得到解答 (community.jmp.com).