View Single Post
05/09/14, 05:57 AM   #2
slowglass
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 8
You can also do
Code:
pattern = "I have sold <<1[no items/a single item/$d items]>>."
msg = zo_strformat(pattern, num)
If num = 0
msg = "I have sold no items"

if num = 1
msg = "I have sold a single item"

if num > 1 (ie 5 in this case)
msg = "I have sold 5 items"
  Reply With Quote