my first part is

Code:
var %msg
if ($1 == !) %msg = notice $nick
elseif ($1 == @) %msg = msg $chan


i want to know how i would put this into the code.