Using Axure RP Prototype design Practice 05, Understanding Formulas

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.