Spreadsheet file node - how to return a single row

So
I have a function code which sets a string


The following Fails with the IF node filtering

Now if i change the IF node to not an expression it works as expected and the single result is TRUE


What am i missing here, does this IF node not filter with expressions at all?