This is a simple custom identifier where you enter two numbers and the asc value of a character to seperate them with and it gives you a list of numbers between the first two, sperated by the character you specify.
Example: //echo -a $x-y(4,20,32) returns 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
//echo -a $x-y(-1,10,46) returns -1.0.1.2.3.4.5.6.7.8.9.10
//echo -a $x-y(10,-4,46) returns 10.9.8.7.6.5.4.3.2.1.0.-1.-2.-3.4.
x-y {
if ($1-3 isnum) {
if ($1 <= $2) {
var %r = $1
while (%r <= $2) {
var %x = $addtok(%x,%r,$3)
inc %r
}
}
elseif ($1 > $2) {
var %r = $1
while (%r >= $2) {
var %x = $addtok(%x,%r,$3)
dec %r
}
}
}
return %x
}