Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Syntax: $col(N1-N2,TEXT)
- ; Examples: //echo -a IS: $col(4,test1) --- $col(4-8,test2) --- --- $col(08-04,test3)
- alias col {
- if ($1 == $null) { return }
- var %c = $gettok($1,1-2,45)
- var %n1 = $gettok(%c,1,45)
- var %n2 = $gettok(%c,2,45)
- if (%n1 !== $null) && (%n1 !isnum 0-99) { return }
- if (%n2 !== $null) && (%n2 !isnum 0-99) { return }
- if (%n1 !== $null) && (%n2 == $null) { var %t = %n1 }
- if (%n1 !== $null) && (%n2 !== $null) { var %t = $+(%n1,$chr(44),%n2)) }
- return $+($chr(3),%t,$chr(2),$chr(2),$2-,$chr(3),$chr(2),$chr(2))
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement