Inserting Conditions

Inserting a Condition with a Block Tag

A 'block tag' is a tag that you can put into your design that marks the beginning and the end of a section of your design that will be shown or hidden based on the value of the condition. They look like this:

To insert a new block tag, click the 'Insert Block' button on the toolbar  or right click in your design and select 'Insert Block'. You can also highlight code and insert the block and the block tags will go around the highlighted code.

You will then need to define your condition (see Creating A New Condition) and click 'OK'.

The block tags will then be inserted into the design. Now, if required, use cut and paste to move the content you want shown/hidden so that it is between the block tags.

To modify the condition for a pair of block tags, double click on the starting 'block if' tag.

Embedding a Condition within a Variable

You can also build a condition into a variable.

In your layout code, right-click on the variable you want shown/hidden and select 'Edit Appearance'. Go to the 'Condition' setting, and in the drop-down list select one of the following:

·      <Edit Expression> - to create a new condition. This is described in the section called 'Condition Editor' in Creating A New Condition.

·      <Browse Condition> - select a re-usable condition (from 'Design | Library | Conditions') to use. These are described in the section called 'Re-Useable Conditions' in Creating A New Condition.

Embedding a Condition within a Layout Selector

In your layout code, right-click on the layout selector that inserts the layout you want shown/hidden and select 'Edit Appearance'. Go to the 'Condition' setting, and in the drop-down list select one of the following:

·      <Edit Expression> - to create a new condition. This is described in the section called 'Condition Editor' in Creating A New Condition.

·      <Browse Condition> - select a re-usable condition (from 'Design | Library | Conditions') to use. These are described in the section called 'Re-Useable Conditions' in Creating A New Condition.