string.compare Action
This trigger action will perform a comparison using one or more strings provided and the comparison function selected.
Action
This trigger action allows for multiple logical action routes to be handled in one trigger.
This trigger action is found under the String heading.
Canvas
When dragged onto the canvas, the appearance of the action is a diamond with three routing points.
The left routing point (red) is the failure route. This route will be taken if the expression to be evaluated results in an error.
The bottom routing point (gray) is the false route. This route will be taken if the expression evaluates to false.
The right routing point (blue) is the true route. This route will be taken if the expression evaluates to true.
Form
Parameter
Name |
Type |
Required |
Description |
---|---|---|---|
First string |
String |
Yes |
The first string in the comparison. |
Second string |
String |
Yes/No |
The second string in the comparison, required for all comparisons except "Is Empty". |
Comparison |
Option |
Yes |
Equals - The two strings are exactly equal Equals (case insensitive) - The two strings (ignoring case) are equal Starts with - "First string" starts with the string defined in "Second string" Ends with - "First string" ends with the string defined in "Second string" Is Empty - "First string" is empty (not defined or length is 0). |