Skip to main content
Emarsys ESL Help Center home page
  • Help Portal
  • Training
  • Developers
  • Expert Connect
  • Help Portal
  • Training
  • Developers
  1. Emarsys ESL
  2. Coding Basics

Coding Basics

Want to know how to use variables or conditions? Then start here!

Twig and ESL

  • Twig vs ESL
  • Supported Twig operators
  • Supported Twig filters & functions
  • Supported Twig tags

Operators

Expressions

Filters

Statements

Variables

Arrays

Commenting

Conditions

  • if and else
  • elseif
  • foreach

Code nesting

Data Referencing

  • Relational Data
  • Contact database data (personalization placeholders)
  • External event data

ESL in HTML and Template Editors

Template blocks

Useful coding tools

 

Feedback

We’d love to hear your thoughts on our website to make it better for you – your feedback is welcome!

  • Legal Notice
  • Privacy Policy
  • Anti Spam Policy
  • Tracking in our platform
  • UK Modern Anti-Slavery Policy
  • Trust
  • Support
  • Partners
  • Contact
Proud Partners Of
csa
eco
google-marketing
shopifyplus
© 2025 SAP Emarsys. All rights reserved.