LassoScript Utility
Basics Browse Detail

: Array

Tag Link : Array Category Symbol
Type Symbol Source Available No
Support Preferred Version 7.0
Change Unchanged Data Source Any
Output Type Array Security None
Implementation Internal Sets Lasso 8.5, Lasso 8.0, Lasso 7.0

Description

The : symbol is a shortcut for the [Array] tag. A new array is formed with the parameters after the : symbol.

Syntax

[: 'one', 'two', 'three']

[Variable: 'Array' = (: 'one', 'two', 'three')]

<?LassoScript
: 'one', 'two', 'three';
?>

Parameters

Required Parameters
Array Parameters The parameters of the : symbol including values and name/value parameters are copied as the starting elements of the array.

Examples

To create an array using a shortcut

Use the : symbol. In the following example an array is created containing the values 'red','green','blue' and stored in a variabled 'colors'.

[Variable: 'colors' = (:'red','green','blue')]
[Output: $colors]

(Array: (Red), (Green), (Blue))