look into /help $iif
um you can shorten this
alias gone {
if (!$1) {
.scon -a away AFK
echo Away System On
.set %Kaway on
.set %Kawaymsg AFK
.enable #Beep
halt
}
.scon -a away $1-
echo Away System On
.set %Kaway on
.set %Kawaymsg $1-
.enable #Beep
}
into this
alias gone {
.scon -a away $iif(!$1,AFK,$1-)
echo Away System On
set %Kaway on
set %Kawaymsg $iif(!$1,AFK,$1-)
.enable #Beep
}
keep up the coding