Skip to main content

This documentation is for an older version of this product. See the latest version of this content.Opens in a new tab

DTL <case>

指定された条件が満たされると、<switch> 要素内のアクションのブロックを実行します。

構文

<switch>
   <case condition="1">
   ...
   </case>
   <default>
   ...
   </default> 
</switch>

属性

属性 説明
condition 必須項目。ObjectScript 条件式が真の場合、<case> 要素内のコードが実行されます。 整数値 1 (真の場合) または 0 (偽の場合) を求める式。

要素

要素 目的
<annotation> オプション。<case> 要素について記述するテキスト文字列。

説明

<switch> 要素は 1 つ以上の <case> 要素を含みます。<case> 要素内の要素は、条件が真に評価されると実行されます。

FeedbackOpens in a new tab