Like Blessing said, you need to state whether or not it should be on or off. The * in the on event means that ANY text can be used after Welcome, that's why there are if statements used to tell them apart.
if ($2 == on)
if ($2 == off)
$2 in this case is the second word you post, $1 is !welcome.