westor

$commasep() for Synide v1.0

Jan 24th, 2022 (edited)
432
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.31 KB | None | 0 0
  1. alias commasep {
  2.   ; $commasep(one two three)
  3.   if ($1 == $null) { return }
  4.  
  5.   var %t = $numtok($1,32)
  6.  
  7.   var %i = 1
  8.   while (%i <= %t) {
  9.     var %w = $gettok($1,%i,32)
  10.  
  11.     if (%i == %t) { var %tot = %tot $+(%w,$chr(46)) }
  12.     else { var %tot = %tot $+(%w,$chr(44)) }
  13.  
  14.     inc %i
  15.   }
  16.  
  17.   return %tot
  18. }
  19.  
Add Comment
Please, Sign In to add comment