Skip to main content

Overview of variables

Variables are spaces where you can have a specific name and value while the Mandao app is running. This value can be changed to another value by API or action. Variables can be used for API calls, [conditional blocks], etc., and are more dynamic and can create various pages.

note
  • If the value "3" is assigned to the variable 'A', the value is processed as '3' wherever 'A' is used.
  • After that, if the value of 'A' is changed to '5', then the value is processed as '5' everywhere 'A' is used.

The range of available variables (scoping)

Variables set in a block can only be used in child blocks of that block. If the variables are set in two groups A and B, respectively, not in the relationship between parents and children, A cannot use the variables B, and B cannot use the variables B cannot use the variables B. We call these principles scoping.

tip
  • If you set a variable in the page or modal, it can be used in all blocks within the page/modal.
  • Variables imported from the app or API can only be used in child blocks of blocks where variables are declared.
  • However, in the case of a condition block, variables set in that block can also be used to set display conditions.