Environment variables in if..then logic

This is not supported. The workaround is to use mutate+add_field to add a field to [@metadata] then test that.