arc:default
Version 22.0.8473
arc:default
Version 22.0.8473
The arc:default keyword is used with the arc:select keyword. The arc:default keyword consists of a block of ArcScript that is executed if the value in arc:select does not match any of the values in arc:case.
Parameters
None
Control Attributes
None
Examples
Display an icon based on the condition. The arc:case elements match “CompanyA” and “CompanyB” in the company_name attribute, and, if any occurrences are found, take the action associated with that case.
<arc:select value="[company_name]">
<arc:case value="CompanyA">
<img src="http://www.companya.com/favicon.ico" />
</arc:case>
<arc:case value="CompanyB">
<img src="http://www.companyb.com/favicon.ico" />
</arc:case>
<arc:default>
<img src="http://www.myhosting.com/generic.ico"/>
</arc:default>
</arc:select>
See Also
- arc:select: Write a multiselect ArcScript block.