$updown,$spaces

By Gex on Mar 06, 2006

$updown identifier can be used to return the text in random case
eg: $updown(hawkee) can return HaWkeE
whereas the $spaces identifers can be used to return the text separated by spaces.
eg: $spaces(hawkee) will return h a w k e e
u can also use the 2 identifiers at the same time.
eg: $spaces($updown(hawkee)) and that may return H a W K E e
thats how it works..

alias spaces {
  var %x = $len($1),%y = 1,%z
  while (%y <= %x) {
    var %z = $+(%z,$chr(32),$mid($1,%y,1))
    inc %y
  }
  return %z
}
alias updown {
  var %x = $len($1),%y = 1,%z
  while (%y <= %x) {
    var %z = $+(%z,$iif($rand(1,0),$upper($mid($1,%y,1)),$mid($1,%y,1)))
    inc %y
  }
  return %z
}

Comments

Sign in to comment.
Biggeorgiafan14   -  Mar 06, 2006

I like it, it would work well with random colors also... You could make some pretty wild text.

 Respond  
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.