A block that selects some other block to be used in its place based on information at runtime.Click Here to View How-To Video
Drag this block into your app and then you can edit it's settings by right clicking on the block with your mouse.
This block acts as a placeholder that chooses one block from a set of possibilities based on information available at the time the block is created.
The process for selecting the block is straightforward: The result of the Match Expression is compared against the result of each Match Value expression in the order in which they are defined. A match is is defined as an exactly, textual equivalence between the results of the two expressions.
- If a match is found, the corresponding block is created and used in place of this block.
- If a match is not found, the Default Block is used instead.
- If this block is refreshed, the expressions are re-evaluated and the selection is performed again.
This block can be used effectively to change the presentation of a view based on the content in a data source, or change a view's presentation by setting a variable and executing a block refresh in a script.
This 4.00 version includes whitespace, so care should be used to make sure there are no inconsistent spaces, linefeeds or tabs in the expressions.
If you change the variable need to refresh
|Match Expression||An expression to evaluate. When there is a match, the Block with the match will be displayed inside the Selector. [More help] (http://support.eachscape.com/customer/en/portal/articles/2228575-selector)|
|Default Block||The block to use if no matches are found.|
|Blocks||The number of blocks to choose from.|
|Block||The Block to be inserted into the Selector if the Match Value (below) matches the Match Expression (above). [More help] (http://support.eachscape.com/customer/en/portal/articles/2228575-selector)|
|Match Value||If that value matches the value set in 'Match Expression' above, then the Block defined herein will be displayed in this Selector. The value can be a simple value like 'Menu1' or a calculated expression even coming from a data source. [More help] (http://support.eachscape.com/customer/en/portal/articles/2228575-selector)|
Before Draw, Tap