Ash Flow branch condition
I'm trying to do something like this:
the branch conditions is the following:
The strange thing is that the branch executes even if the record is found. I understand that condition must be a boolean value.
Is there a way to achieve it with a
read
action or I need to use a custom :get_invoice_data
step?1 Reply
Do you mean “it executes even if the record is not found?
That seems right to me, but you could try
expr(not is_nil(^result(:step)))
Actually maybe I misunderstood. I think you might just want is_nil(…)
. Your step as I read it would only execute if there was something found whereas you want something where it wasnt found.
@tommasop#2001 if your issue has been resolved, please add the resolved tag and close the post. No worries if it’s not resolved yet though 🙂