27 May 2025 09:47 AM
Hello,
When a workflow task returns Boolean true (or false),
{
"result": true
}
to run the next task if to you need to use:
Who can confirm (-;
KR Henk
Solved! Go to Solution.
27 May 2025 12:13 PM - edited 28 May 2025 08:20 AM
Hi Henk,
That would work, but we always recommend square brackets: {{result("run_javascript_1")["result"] == false}}
Best, Haris
Edit:
It should be `True` or `False` (in capital letters), as these are valid names for Python booleans.
One could also use a "short form", that is:
{{ result("run_javascript_1")["result"] }}
27 May 2025 01:29 PM
It should be `True` or `False` (in capital letters), as these are valid names for Python booleans.
Sorry for nitpicking 🙈
One could also use a "short form", that is:
{{ result("run_javascript_1")["result"] }}
27 May 2025 01:52 PM - edited 27 May 2025 01:56 PM
Hello Michal,
In this case, the combination of TS and Python needs a little nitpicking (-;
So above will work if the result of the task returns True or False, but JS uses true and false. So you need to convert the return first? Or is this done automatic....
Thanks Henk
27 May 2025 02:05 PM
Hi Henk,
If a boolean value needs to be converted, we do that out of the box, so you don't need to worry about that.
Hope this clarifies things a bit 🙂
27 May 2025 12:28 PM
Hi Haris,
Thanks for the comment!
KR Henk