From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/xpath/functions/choose/index.html | 44 ++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 files/ja/web/xpath/functions/choose/index.html (limited to 'files/ja/web/xpath/functions/choose') diff --git a/files/ja/web/xpath/functions/choose/index.html b/files/ja/web/xpath/functions/choose/index.html new file mode 100644 index 0000000000..e22ffc925b --- /dev/null +++ b/files/ja/web/xpath/functions/choose/index.html @@ -0,0 +1,44 @@ +--- +title: choose +slug: Web/XPath/Functions/choose +tags: + - Function + - XPath + - XSLT +translation_of: Web/XPath/Functions/choose +--- +

{{ XsltRef() }}

+ +

choose 関数は正負値に基づいて、指定されたオブジェクトのうち1つを返します。

+ +
注意: このメソッドは廃止予定である if() の代わりに使われるべきです。
+ +

構文

+ +
choose( boolean , object1, object2 )
+
+ +

+ +
+
boolean
+
どのオブジェクトを返すかを決定するのに使われる正負オペレーション。
+
object1
+
戻されるか検討される1つめのオブジェクト。
+
object2
+
戻されるか検討される2つめのオブジェクト。
+
+ +

戻り値

+ +

もし与えられた正負値が正であれば、1つめのオブジェクトが戻される。そうでなければ2つめのオブジェクトが戻される。

+ +
注意: 値が戻らないものまで含めて、全てのパラメータが評価される。
+ +

定義

+ +

XForms 1.1

+ +

Gecko のサポート状況

+ +

サポート済み.

-- cgit v1.2.3-54-g00ecf