setNumber()

This function creates a variable for storing a number value, and directly setsvalue.

This value will be immediately returned and can be accessed by the getString() function afterwards within the same expression.


Bash
setNumber(variableName, value) #Output: Number


Examples

Expression parser

Description

Bash
setNumber("myNumber", 100)

This example creates a value "myNumber", sets the value 100 and returns it accordingly. 

Additional information

Parameters used in this function

Parameter

Input (data type)

Description

variableName

text

A text for the variable name.

value

number

The number value to be stored.

Output

This function returns a  number

To retrieve the value stored in the variable, use the function getNumber() within the same expression.


📚 Use cases and examples