Check integer value and return text

I’m trying to check if an integer is -1 in a product table, -1 is our indication it has to be ordered.

getProdDetails.data.prodDetailQuery[0].onHand > 0 ? 'On Hand' : 'Will Be Ordered'

Returns NaN

So I’m missing something.

Community Page
Last updated: