DQL @If Statement - Combine two statements

So it turns out it works fine.

The problem was running an upsert in DQL in Dgraph Cloud.

J