Let's examine this question with a specific scenario.
You have a workflow that checks Stripe invoices for a status that contains the word 'draft.' The text helper is set to check for any text that contains 'draft'-- it will return true if it finds it.
After that, there's a Boolean connector to split the workflow into 'true,' yes, the invoice is a draft, and 'false,' no, the invoice isn't a draft. But the Boolean connector is failing to pick up on the 'trues.' What's going on?
From looking at the execution logs, we can see that the Boolean connector was set to evaluate whether the following condition is true:
if ( true === "true")
Don't forget that the Boolean value of true is not the same thing as the String/text value of "true." You can tell the difference because the Boolean value of true does not have quotation marks.
In this case, true does not equal "true," so the Boolean connector's final evaluation came to false and sent the workflow down the "false" branch.
But wait! Your Boolean connector doesn't have any quotation marks around the word true...
Make sure you've selected the correct data type from the data type menu near the top right corner of the input field. The 'A' icon means 'string' or 'text.'
Click on the 'A' to bring up the data type menu. Select 'Boolean' to turn the string "true" into a Boolean true.
The Boolean input field then turns into a checkbox. Check the box to indicate true; leave it unchecked to indicate false.
Please sign in to leave a comment.