after reading the help file about $sorttok, i came up with this:
Code:
alias min {
  if (!$1) { return 2* $eval($min,0) $+ : Invalid Parameters }
  elseif (!$2) { return 2* $eval($min,0) $+ : Invalid Parameters } 
  elseif ($1) && ($1 !isnum) && (!$2) { return 2* $eval($min,0) $+ : Invalid Parameters }
  elseif ($2) && ($2 !isnum) && (!$3) { return 2* $eval($min,0) $+ : Invalid Parameters }
  else { 
    var %x, %i = $regsub($sorttok($1-,32,n),/[A-Z]|[a-z]/g,$null,%x)  
    return The Minimum Value Is: $gettok(%x,1,32)
  }
}


mine fails if you add characters like: :,./\?()*^%$£"!¬§ frown
if your actually planning on testing these and cant be bothered to remove the code tags problem yourself, just ask :tongue:

Last edited by pheonix; 17/08/03 04:26 PM.