(Untitled)

To fill the database, I have a function that calls an external API. Sometimes, some data are not available and the response from the api is empty:
[screenshot-2022.06.16-09_46_49.png]Unfortunately, in this case, an 'Unable to locate var:' error is generated and the function stops without processing the whole import.
So I'm trying to deal with these cases, I'm thinking of using a condition. But none of them works:
'if var = ' (I leave an empty text)
'if var = null'

Do you have any other way to handle this? Can we check if an api call returns a response, but empty?
Working with APIs
1 reply