Hello. I've made 2 scripts, they allow me to join channels without typing #. /j channel and /join channel.
What I've made works. But, is there a better way? And why is it better? I want to learn and understand.

For /j:
j {
if ($chr(35) isin $1) { join $$1 $2 }
else { join $chr(35) $+ $$1 $2- }
}
For /join:
raw 403:*:{
if ($chr(35) !isin $1) { join $chr(35) $+ $2 | halt }
echo.info There is no such channel as $2
halt
}