Help with the new expressions

Hi all,

I found the new expressions so cool and will start using it now. So far I was using the frontend to extract the specific Json path and creating conditions, but is so complex that was driving me crazy.

I transfer the expression to Xano and works pretty well. Now I'm struggling to do it right and would like to ask for some help.

From the data, I need to extract if the last timestamp is higher that today midnight and return a value 0 if there is a null.

So in the expression build, the get expression is correct and I am able to retrieve the LastTime for the exercise filtered.

However, when I want to check if the LastTime (Integer) is higher than today 00:00h I am doing a mistake I can't spot yet.

$2 -> anchoring the second object

Lastime -> field

now|transform_timestamp:today -> calculating today Unix integer

?? 0 -> if the result is null returning 0

Can someone help here?

Thanks

Gustavo

1
1 reply