Skip to content

rspective/braze-liquid

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notable Growth Liquid Snippets

A collection of helpful Liquid code snippets compiled by Notable Growth. These snippets are intended for use with Braze.

As Braze uses a forked version of Liquid, the code in these snippets may not work with other services that also use Liquid.

Notable Growth is a Braze Alloy partner, we use data, creativity, and empathy in our strategic planning to connect meaningfully with our customers and deliver Notable results.

Arrays

Connected Content

Dates

  • Add Days - Add a specific amount of days to an existing date. Starting date must be converted to seconds first.
  • Format Date - Format a date into ISO 8601.
  • Ordinal Date - Get the ordinal number for a date (e.g 5th, 22nd etc).

Logic

  • Abort - Abort a campaign based on the value of a variable.
  • Case When - Switch statement based on the values of a variable. Useful for displaying copy based on the language of a user.

Math

  • Compare Negative Numbers - Simple example showing how to handle comparing a negative number in Liquid. This also has an example of casting a string as a number.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 100.0%