$cand Identifier

By gooshie on Dec 06, 2009

This identifier accepts a string of comma or space
separated items and returns them separated by commas
and the word 'and' for use in a sentence.
Use in remotes and popups with $snicks $1- etc.

Example: $cand(item1,item2,item3)
Example: $cand(item1 item2 item3)
Returns: item1, item2, and item3

Image

Usage: $cand($snicks)
Usage: $cand($1-)

alias cand return $regsubex($1-,/(\s)/g,$iif(\2,$chr(44),$iif(\n > 1,$chr(44) \1and,\1and))\1)

Comments

Sign in to comment.
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.