Core Function LBound

From Sputnik Wiki
Jump to: navigation, search
LBound( <array/binary-array> )

Contents

Description

Returns the index of the lowest element in an array .

Parameters

array/binary-array

The array to use.

OR

The binary variable to use.

Return Value

Success - Returns the lowest index in the array/binary-array.

Failure - Returns -1.

Remarks

If you want the highest index instead of the lowest use UBound( <array/binary-array> ) for that.

Example

$array = array ("One", "Two", "Three");
println("Lowest index is: " . LBound($array) );
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox