Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

 

The following operators are valid operators for numbers. Note: In addition to these there are also functions in the math module.

range()

The range operator returns an array containing x to n elements. The number it operates on is the start of the range and the first parameter is the end of the range. For example:

 

(0).range(10) // Returns [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];

 

Note the parenthesis on the number being operated on. These are required in order for the KRL to parse.

  • No labels