Ordinal Formatter — Yes, It Exists!

3 views
Good news, — I had it wrong in my last response! GPTWeb absolutely does have a built-in ordinal formatter. The |ordinal formatter converts any number into its ordinal equivalent (1st, 2nd, 3rd, 4th, etc.). Here's how it works: Syntax: {{raw:visitor.visit_count|ordinal}} Example: If a visitor is on their 3rd visit → renders as 3rd A perfect use case would be personalizing messages like "Welcome back! This is your visit!" Sorry for the confusion in my earlier answer — the |ordinal formatter is fully supported and available everywhere tokens work. For the full formatter reference, check out Using Tokens.

Number-Related Token Formatters

Formatter Description Example Input Example Output
{{raw:visitor.visit_count|ordinal}} Ordinal suffix 3 3rd
{{raw:visitor.visit_count|number}} Comma-separated 1234567 1,234,567
{{raw:score.llm_confidence|percent}} Percentage 85 85%
{{raw:visitor.revenue|currency}} USD currency 1234.50 $1,234.50
|ordinal
Ordinal Formatter
1st, 2nd, 3rd
Example Output
All Token Locations
Works In

Need more help?

Our AI assistant can answer any question instantly.

Continue This Conversation