> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kasoftware.com/llms.txt
> Use this file to discover all available pages before exploring further.

# arc:default

> 定义 arc:select 中的回退块，当没有 arc:case 值与所选值匹配时执行。

export const siteNameShort = "知行之桥";

arc:default 关键字和 [arc:select](./op-arc-select) 关键字一起使用。arc:default 关键字由 {siteNameShort}Script 代码块组成，当 [arc:select](./op-arc-select) 中的值与 [arc:case](./op-arc-case) 中所有值都不匹配的时候，将执行该代码块。

## 参数

无

## 控制属性

无

## 示例

根据条件显示图标。[arc:case](./op-arc-case) 元素与 company\_name 属性值匹配 “CompanyA” 和 “CompanyB”，如果满足其中一种，则会采取与此情况关联的操作。

```xml theme={null}
<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>
```

## 另请参阅

* [arc:select](./op-arc-select)：编写一个多选 {siteNameShort}Script 代码块。
