Skip to main content

SingletonElementOfList

Type​

operator

Summary​

Designates the element at index Index in Target.

Syntax​

element <Index> of <Target>

Description​

Either locates the element container at the given index for use as the target container of another operation, or evaluates the element at the given index as the source of another operation.

note

It is an error if Index is out of range.

Parameters​

NameTypeDescription

Index

An expression which evaluates to a valid integer index of Target.

Target

An expression which evaluates to a list.

Examples​

variable tVar as List
put [1,2,3] into tVar
put "A" into element 1 of tVar -- tVar is ["A",2,3]

variable tNum as Number
put element 2 of tVar into tNum -- tNum is 2
Thank you for your feedback!

Was this page helpful?