Table of Contents

Search

  1. Preface
  2. Function reference
  3. Constants
  4. Operators
  5. Dates
  6. Functions
  7. System variables
  8. Datatype reference

Function Reference

Function Reference

Complex operators

Complex operators

Use complex operators to access elements in an array, map, or struct. You can use complex operators only in advanced mode.
The following table lists the complex operators:
Operator
Meaning
[ ]
Subscript operator.
Use a subscript operator with an array or a map:
  • In an array, use a subscript operator to access one or more elements.
  • In a map, use a subscript operator to access the value corresponding to a given key in a key-value pair.
.
Dot operator.
Use a dot operator with a struct or an array of structs:
  • In a struct, use a dot operator to access an element.
  • In an array of structs, use a dot operator to access elements in each struct. The operator returns the elements of the same name within each struct as an array.
To access elements in a nested hierarchy, you can use a combination of complex operators.

0 COMMENTS

We’d like to hear from you!