Variables are a variable number that can be thought of as a container for data. Variables have 2 operations, one is read, and the other is write. The global variable of axure means that the variable can be read and written at any time.
Click Global Variables under Toolbar project, where you can set globals.
As you can see, there is already a global variable by default. You can also create a new variable, which can have a default value.
Now customize a global variable.
Drag a rectangle into the page, set the rectangle style, and set it to rack in shape name.
Drag it into a rectangle, set it to a circle and fill it with color, as a button.
Set the use case for the circular rectangle as follows:
Preview, click the blue button to appear the text, as follows:
The above is the reading of the global variable value, how to change the global variable?
Copy the contents of the previous page to another page, overriding the setting onclick event as follows:
Preview, click on the blue button, this time the content of the display is what we set.
The above is to reset and display the value of the variable, whether you can change the value of the variable through the function?
To copy the contents of the previous page to another page, the onclick event of the override button is as follows:
Above, the value of the set variable is calculated by the function.
Preview, click on the blue button, shown below:
Summary: Global variables can be read at any time, and the values of global variables can be changed by direct assignment or function assignment.
Reference: http://www.iaxure.com/
Using Axure RP Prototype design Practice 04, Understanding global Variables