This snippet is a short alias that shows you a little about /halt. I have tested it, with just /haltdem, and no action. It doesn't use an else statement, which most of you will probably do.
If you type /haltdem , it will not say anything.
If anyone has seen another /halt demonstration, as X-FILE said I rip others' work, please respond in the comments. Honestly, I haven't seen another /halt demonstration anywhere.
; /halt Demonstration by UTUCS.com-Admin
;
; Put this into remotes, and type /haltdem.
; Notice that the script doesn't do anything.
; Then type /haltdem <anything here>, and
; notice that it says something. It's another
; way without using else.
alias haltdem {
if (!$1) {
halt
}
echo -a You put parameters into /haltdem.
}
; Also, this code would work fine I believe
; (I haven't tested it, I only tested /haltdem):
;
; alias haltdem {
; if (!$1) {
; halt
; }
; else {
; echo -a You put parameters into /haltdem.
; }
;}