Step 1.2: Introducing WarpScript Variables

Variables

As any other programming language, WarpScript allow the developer to store it’s own variables. In WarpScript you can save a specific stack element in a variable. This is done using the function STORE.

This function expects two elements on the stack :

  • A stack element to save
  • A variable name

Then to push back the element on the stack, write the variable name precede of a $.

Let’s try it, save the following string in a variable and then push it back several time on the stack!

To be continued

Great job! Let’s continue with some WarpScript list manipulation in the next step!