Exclusive gateway empty string check

I’m trying to check if a field named Error is empty in an exclusive gateway workflow step.

I have a record with a string field called Error.
When I check the record’s Error field value, it’s never null,empty or equal to the literal "" string.

My workflow gateway logic is this (you can see I was trying any way forward)

isEmpty(dbFuncExecRecord.values.Error)||
isNil(dbFuncExecRecord.values.Error)||
dbFuncExecRecord.values.Error==""

But even though the field is empty in the UI and null in the DB, the gateway always chooses the False path. When I alert the Error field value using a prompt it comes up as interface

Prompt definition:

Result:
image

What is the idiomatic way of empty string checking in a workflow?

1 Like

I am facing same problem. Can anybody help ?

Try comparing it to the numeric value 0.

I’m guessing certain structs are nil in go but are exposed as a 0 value which is why this sometimes works.

I would try …

dbFuncExecRecord.values.Error ? false : true