DRAFT help

Scripting Guide > Data Structures > Lists in JSL Scripts
Publication date: 12/16/2025

Lists in JSL Scripts

Lists are containers to store items, such as numbers, variables, and more:

Numbers

Variables

Character strings

Expressions (for example, assignments or function calls)

Matrices

Nested lists

Create a list in one of the following ways:

Use the List function

Use { } curly braces

Examples

Use the List() function or curly braces to create a list that includes numbers and variables:

x = List(1, 2, b);
x = {1, 2, b};

A list can contain text strings, nested lists, and function calls:

{"Red", "Green", "Blue", {1, "true"}, sqrt( 2 )};

You can place a variable into a list and assign it a value at the same time:

x = {a = 1, b = 2};
Want more information? Have questions? Get answers in the JMP User Community (community.jmp.com).