The use of this experience formula, the general occurrence of values can be used when the formula, the formula can use global variables can also use local variables, in the axure use the company has a certain syntax.
Create 2 global variables first.
Drag the rectangle part into the page to edit the use case for its OnClick event:
Let it show the and of the two global variables. Note: [[a]]+[[b]] It is not possible to write this way. [[]] inside can be calculated, set conditions, you can also insert other values. The words written outside [[]] are treated as strings.
Preview, click on the rectangle area to display the 2 variable's and.
If you are setting a value event, the following results are returned as follows:
[[1>2]] Fasle
[[1>2]] [[1==1]] false true
[[5%2]] 1
You can also set local variables in a formula. Local variables are valid only for the current action.
Set a local variable C under the set text action of the onclick event of the rectangle.
The action details of this use case are as follows:
Preview, when clicked on a rectangular area, appears as follows:
Summary: The formula is used to calculate the variable, the calculation of the variable needs to be placed in [[]], the content outside [[]] is treated as a string.
Reference: http://www.iaxure.com/
Using Axure RP Prototype design Practice 05, Understanding Formulas