Help

Upcoming database upgrades. Airtable functionality will be reduced for ~15 minutes at 06:00 UTC on Feb. 4 / 10:00 pm PT on Feb. 3. Learn more here

How to use IF and ENDIF conditional statements in Sendgrid app?

Topic Labels: Extensions
Solved
Jump to Solution
1145 2
cancel
Showing results for 
Search instead for 
Did you mean: 

Hello Airtable community,
How to use IF and ENDIF conditional statements in Sendgrid app with html ?
I tried :
{% if {name}== null or {name}== ‘’ %}NO NAME CONTENT{% else %}WITH NAME CONTENT{% endif %}
but all the code is shown.

1 Solution

Accepted Solutions

Welcome to the community, @Nadia_Ouali!

You can’t do conditionals with the SendGrid app, because that code is not HTML. That code is some other language:

You could perhaps create an Airtable formula field and write a conditional formula there, and then embed that formula field into the SendGrid app.

If that doesn’t work for you, you can potentially write a custom JavaScript to do what you’d like.

You could also use an external automation tool like Integromat which has full support for SendGrid and Airtable, and gives you the ability to create conditional logic in your automations.

See Solution in Thread

2 Replies 2

Welcome to the community, @Nadia_Ouali!

You can’t do conditionals with the SendGrid app, because that code is not HTML. That code is some other language:

You could perhaps create an Airtable formula field and write a conditional formula there, and then embed that formula field into the SendGrid app.

If that doesn’t work for you, you can potentially write a custom JavaScript to do what you’d like.

You could also use an external automation tool like Integromat which has full support for SendGrid and Airtable, and gives you the ability to create conditional logic in your automations.

Than you ! I will use an Airtable formula field.