Skip to content

AmiScript 3: Data Structures

This third tutorial in the series will explore some of the data structures available in AMI, how to use them and any differences in how they behave. We will then look at using for, while and foreach loop statements to repeat sections of code. We will touch on some more complex looping concepts such as how to break out of loops early, skip the rest of the current iteration and how to nest loops inside each other. Finally, we will use what we learnt in this tutorial to add a new history feature to the calculator we have been working on in previous tutorials.

  • Topics Covered


    Data structures:

    • Lists
    • Sets
    • Maps

    Loops:

    • while
    • for
    • foreach
    • break & continue statements
    • nesting

    Improving the calculator from the previous tutorial.

  • Resources


    This tutorial requires you to download the following dashboard: