Zum Inhalt

If#

Verwenden Sie den If-Knoten, um einen Workflow bedingt basierend auf Vergleichsoperationen aufzuteilen.

Bedingungen hinzufügen#

Erstellen Sie Vergleichs-Bedingungen für Ihren If-Knoten.

  • Verwenden Sie das Dropdown-Menü für den Datentyp, um den Datentyp und den Vergleichsoperationstyp für Ihre Bedingung auszuwählen. Um beispielsweise nach Daten nach einem bestimmten Datum zu filtern, wählen Sie Datum & Uhrzeit > ist nach.
  • Die Felder und Werte, die in die Bedingung eingegeben werden müssen, ändern sich basierend auf dem von Ihnen ausgewählten Datentyp und Vergleich. Eine vollständige Liste aller Vergleiche nach Datentyp finden Sie unter Verfügbare Datentypvergleiche.

Wählen Sie Bedingung hinzufügen, um weitere Bedingungen zu erstellen.

Bedingungen kombinieren#

Sie können Daten behalten:

  • Wenn alle Bedingungen erfüllt sind: Erstellen Sie zwei oder mehr Bedingungen und wählen Sie UND im Dropdown-Menü zwischen ihnen aus.
  • Wenn eine der Bedingungen erfüllt ist: Erstellen Sie zwei oder mehr Bedingungen und wählen Sie ODER im Dropdown-Menü zwischen ihnen aus.

Branch-Ausführung mit If- und Merge-Knoten#

0.236.0 and below

Localmind Automate removed this execution behavior in version 1.0. This section applies to workflows using the v0 (legacy) workflow execution order. By default, this is all workflows built before version 1.0. You can change the execution order in your workflow settings.

If you add a Merge node to a workflow containing an If node, it can result in both output data streams of the If node executing.

One data stream triggers the Merge node, which then goes and executes the other data stream.

For example, in the screenshot below there's a workflow containing an Edit Fields node, If node, and Merge node. The standard If node behavior is to execute one data stream (in the screenshot, this is the true output). However, due to the Merge node, both data streams execute, despite the If node not sending any data down the false data stream.

Zugehörige Ressourcen#

Weitere Informationen zur Verwendung von Konditionalen zur Erstellung komplexer Logik in Localmind Automate finden Sie unter Splitting with conditionals.

Wenn Sie mehr als zwei bedingte Ausgaben benötigen, verwenden Sie den Switch-Knoten.

Available data type comparisons#

String#

String data type supports these comparisons:

  • 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#

Number data type supports these comparisons:

  • 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#

Date & Time data type supports these comparisons:

  • 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#

Boolean data type supports these comparisons:

  • exists
  • does not exist
  • is empty
  • is not empty
  • is true
  • is false
  • is equal to
  • is not equal to

Array#

Array data type supports these comparisons:

  • 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#

Object data type supports these comparisons:

  • exists
  • does not exist
  • is empty
  • is not empty