Adding "proper" to this snippet

Hi! :blush:

I want to use someone's first name in this snippet, in two different settings. It's working completely (the if/else, the splitting of first and last name), only sometimes people don't capitalise their names. That's what I want to use proper for. Only I can't figure out how to add it here so it works!

Anyone? :raised_hands:


Hi Monica.

For the if/else part, you may use:
{if: contains(proper({site: url}), "...")}

For the splitting part, you may use:
{=proper(split(..., " ")[1])}

I hope that works for you, please let me know if you need any more help on this.

Hi Abdalla, thanks so much! It works perfectly in the text splitter :blush:

1 Like