Documentation Center

Conditions for optional regions

You can use optional regions in your Adobe Dreamweaver Template to display certain contents of the input package only if certain conditions hold. As part of creating an optional region, create a Boolean expression that evaluates to true or false: if the expression evaluates to true the optional region is displayed, otherwise false then the region is not displayed.

A Boolean expression can be:

  • a Boolean literal (true or false)
  • a combination of one or more string operands or numerical operands with one or more operators. For example in a == b, a and b are operands and == is the operator.
  • a variable name, meaning that the code inside the condition only executes if the variable exists and has a value.
  • a combination of one or more of the above with one or more Boolean operators (see Boolean operators).