If/Else
If/Elseノードは、1つ以上の条件を評価し、ワークフローをTrue(条件を満たす)とFalse(条件を満たさない)の2つのブランチに分割します。各ブランチには、そのパスの構築を独立して続行できる独自の**+**ボタンがキャンバス上にあります。
設定
条件
各条件は3つの部分で構成されます:
| フィールド | 説明 |
|---|---|
| Variable | 評価する変数。使用可能なワークフロー変数から選択します。 |
| Type & Comparison | 適用するデータ型と比較演算子。 |
| Value | 比較対象の値。変数を選択するか、値を直接入力します。 |
+ Add Conditionをクリックして複数の条件を追加します。Join withドロップダウンを使用して、条件の結合方法を定義します:
| オプション | 説明 |
|---|---|
| AND | Trueブランチが実行されるには、すべての条件を満たす必要があります。 |
| OR | いずれか1つの条件を満たせば、Trueブランチが実行されます。 |
Type & Comparisonオプション
| タイプ | 使用可能な比較 |
|---|---|
| String | exists、does not exist、is empty、is not empty、is equal to、is not equal to、contains、does not contain、starts with、does not start with、ends with、does not end with、matches regex、does not match regex |
| Number | exists、does not exist、is empty、is not empty、is equal to、is not equal to、is greater than、is less than、is greater than or equal to、is less than or equal to |
| Date & Time | exists、does not exist、is empty、is not empty、is equal to、is not equal to、is after、is before、is after or equal to、is before or equal to |
| Boolean | exists、does not exist、is empty、is not empty、is true、is false、is equal to、is not equal to |
| Array | exists、does not exist、is empty、is not empty、contains、does not contain、length equal to、length not equal to、length greater than、length less than、length greater than or equal to、length less than or equal to |
| Object | exists、does not exist、is empty、is not empty |
条件分岐
If/Elseノードは、キャンバス上に2つの出力ブランチを生成します:
| ブランチ | 説明 |
|---|---|
| True | 条件が満たされた場合に実行されるステップに接続します。 |
| False | 条件が満たされなかった場合に実行されるステップに接続します。 |
結果
Resultsタブには、ノードの実行後にどのブランチが選択されたか、および評価された条件値が表示されます。