Finally, easy synchronous shell piping:

; //echo -a $gatewayip returns 192.168.0.1
alias gatewayip {
  exec -a _gatewayip ipconfig
  var %ip = %_gtip
  unset %_gtip
  return %ip
}
alias _gatewayip {
  if (Default Gateway * iswm $2-) {
    if (!%_gtip) %_gtip = $gettok($2-,-1,32)
  }
}

May 21st 2008: Version 1.01 released.
November 1st 2007: Version 1.0 released.

Download v1.01 | License | Documentation