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


JSL Syntax Reference > JSL Functions > Expression Functions
Publication date: 04/28/2021

Expression Functions

Arg(expr, i)

Arg Expr(expr, i)

Description

Finds the argument numbered by i within the given expression.

Returns

The ith argument within the expression expr.

Empty() if that argument does not exist or is not specified.

Arguments

expr

an expression defined previously in the JSL script.

i

an integer denoting which argument to return.

Notes

Arg Expr() was deprecated in a previous release of JMP. Use Arg() instead.

Eval Expr(expr)

Description

Evaluates any expressions within expr, but leaves the outer expression unevaluated.

Returns

An expression with all the expressions inside expr evaluated.

Argument

expr

Any JSL expression.

Expr(x)

Description

Returns the argument unevaluated (expression-quoting).

Returns

The argument, unevaluated.

Argument

x

Any valid JSL expression.

Extract Expr(expr, pattern)

Description

Find expr matching pattern.

Returns

A pattern that matches the specified pattern.

Arguments

expr

Any expression.

pattern

Any pattern.

Head(exprArg)

Head Expr(exprArg)

Description

Returns the head of the evaluated expression, without its arguments.

Note

Head Expr() is deprecated. Use Head() instead.

Head Name(expr)

Head Name Expr(expr)

Description

Returns the head of the evaluated expression as a string.

Note

Head Name Expr() is deprecated. Use Head Name() instead.

N Arg(exprArg)

Description

Returns the number of arguments of the evaluated expression head.

N Arg Expr(exprArg)

Description

N Arg Expr() is deprecated. Use N Arg() instead.

Returns the number of arguments of the expression head.

Name Expr(x)

Description

Returns the unevaluated expression of x rather than the evaluation of x.

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