Skip to content

Length command

Alvin Cheng edited this page Jan 9, 2023 · 2 revisions

Description

This is the length command, this command will return the number of characters in a string or the amount of elements in an array. This command will take a variable name as argument 1 for the variable to calculate the length for. And a variable name for the variable to return the data to.

Example

$ARR_VARIABLE = (array "<VALUE>" "<VALUE>");
$VARIABLE_LENGTH = (length $ARR_VARIABLE);

Note You can use the simplified syntax for a better experience. (As shown above)

Clone this wiki locally