Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.Opens in a new tab

For information on migrating to InterSystems IRISOpens in a new tab, see Why Migrate to InterSystems IRIS?

<CSP:ELSEIF>

ELSEIF ブロックの範囲を指定します。

Synopsis

<CSP:IF>...<CSP:ELSEIF CONDITION='%response.Data("TEST")=1'>...</CSP:IF>

属性

一般的な属性

属性 概要
CONDITION 実行時にサーバ側で評価される式 サーバ側の式

概要

CSP:IF ブロック内に置かれた CSP:ELSEIF タグは、実行時に CSP:ELSEIF の CONDITION が True に評価された場合に、このタグと CSP:IF (あるいは、次の CSP:ELSEIF または CSP:ELSE) の終了タグにはさまれたテキストを表示するように指定します。

例えば、以下のようになります。

  <CSP:IF CONDITION=(name="Jack")>
    Hello, Jack!
  <CSP:ELSEIF CONDITION=(name="Jill")>
    Hello, Jill!
  <CSP:ELSE>
    Hello, someone who is not Jack or Jill!
  </CSP:IF>

詳細は、"CSP:IF" タグを参照してください。

スクリプト言語の指定

CSP:ELSEIF タグは、言語設定が cache か basic かにより、%ELSEIF と %ELSEIFBASIC のルールのいずれかを適用します。

FeedbackOpens in a new tab