getNumber()

This function returns the value stored in a number variable, which was previously created using the setNumber() function.


Bash
getNumber(variableName) #Output: Number


Examples

Expression parser

Description

Bash
getNumber("myNumber")

This example returns the value stored in the variable named "myNumber", e.g.:

3

Additional information

Parameters used in this function

Parameter

Input (data type)

Description

variableName

text

The name of the stored variable.

Output

This function returns a number

To return the value you must have created the variable before, using the setNumber() function within the same expression.


📚 Use cases and examples