Zephyr Functions

  • abs - return the absolute value of a number
  • ad - return the HTML of an adFlight ad placement
  • adinfo - return meta information about an adFlight ad placement
  • contains - return whether a list or string contains an item or substring
  • bucket_list - move elements of a list into separate "buckets" based on criteria
  • date - return a formatted date
  • filter - apply a lambda function to filter out elements of a list
  • first - get the first word in a string or first element of a list
  • h - escape HTML
  • horizon_set_interest - set an interest level temporarily
  • horizon_interest - return an interest level
  • horizon_select - choose an item based on interest levels
  • int - convert a string to an integer
  • intersect - return the intersection of two lists
  • length - return the length of a list or string
  • list - convert any other type to a list
  • lower - convert a string to lowercase
  • map - apply a lambda function to every element in a list
  • md5 - return an MD5 hash
  • number - format a number for display
  • parse - parse and evaluate Zephyr code
  • plural - return the correct singular/plural version of a word
  • public_share - return a URL to share the newsletter
  • random - return a random number
  • replace - perform string replacement
  • setlocale - set the current language
  • signup_confirm - return a URL to confirm signup in a transactional mail
  • slice - return a portion of a list
  • social_share - return a URL to share an item in the newsletter
  • sort - sort a list
  • strip_tags - strip tags from an HTML string
  • substr - return a portion of a string
  • time - return a timestamp
  • title - convert a string to titlecase (first letter of each word capitalized)
  • u - URL-encode a string
  • upper - convert a string to uppercase
  • user_engagement - return the current user's engagement level
  • user_geo_select_region - select the most appropriate region for the user, given a set of geographical regions

Don't see a function that you'd find useful? We add these for customers all the time. Just request it – email support@sailthru.com.

 
/var/www/docs.sailthru.com/htdocs/data/pages/function.txt · Last modified: 2012/04/18 22:52 by Ian White
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki