@yovell04 if the template fails to resolve one of the template variables, it won’t resolve any of them, even valid ones. I think one of your tries probably would work on its own.
Can you share what the output of {{$value}} is? That should work for any type of condition and will return the equivalent of the Preview Alerts button with the full map object.