Lava Example - 9
Prompt
We have an {{ email }} variable with Ted's address, but we actually just want his domain. Split the text on the @ symbol and give us the last part.
Initial Code
{% assign emailParts = email %}
Ted's email domain is {{ emailParts }}
Solution Lava
{% assign emailParts = email | Split:'@' %}
Ted's email domain is {{ emailParts | Last }}