Apps (アプリ)
2022.4
バナーの背景画像
Apps User Guide for Automation Suite
最終更新日 2024年4月19日

関数: If

条件の評価 (いずれか/または)

この関数を使用すると、条件が満たされているかどうかを確認できます。

構文

説明

If(条件, true の場合の値[それ以外の場合の値])

条件が true か false かに応じて、それぞれ別の値を返します。

docs image

引数

引数について詳しくは、以下の表をご覧ください。

引数

入力

説明

Condition(s)

Required

true かどうかをテストする条件/論理式です。

IsTrue

Required

条件の評価が true の場合に使用する値です。

Otherwise

任意です。

条件の評価が true でない場合に使用する値です。何も指定しない場合は、何も返されません。

  • If(true, “Apricot”, “Blackberry”): Apricot
  • If(false, “Apricot”, “Blackberry”): Blackberry
  • If(1 > 0, “Apricot”, “Blackberry”): Apricot
  • If(1 < 0, “Apricot”, “Blackberry”): Blackberry
  • If(true && 1 > 0, “Apricot”, “Blackberry”): Apricot
  • If(true, If(1 > 0, “Apricot”, “Blackberry”), "Raspberry"): Apricot
  • If(false, If(1 > 0, “Apricot”, “Blackberry”), "Raspberry"): Raspberry
  • 引数

Was this page helpful?

サポートを受ける
RPA について学ぶ - オートメーション コース
UiPath コミュニティ フォーラム
UiPath ロゴ (白)
信頼とセキュリティ
© 2005-2024 UiPath. All rights reserved.