I am confused about this on INPUT line, does one just move the line that triggers the on text line below the the on INPUT

Code:
[/code]on *:text:You purchased*including tax*:#: {
  var %price = $calc($remove($gettok($1-,$calc($gettok($1-,0,32) - 2),32),$chr(44),$) / $remove($3,$chr(44)))
  msg $chan Unit Price: $round($calc(%price / 1.06),0) Demo: $round(%price,0) Comm: $round($calc(%price / 1.1),0)
}
[code]


would I make the code like yours in this message?
on *:input:#{
if {1 == You purchased*including tax*) {
msg $chan Unit Price: $round($calc(%price / 1.06),0) Demo: $round(%price,0) Comm: $round($calc(%price / 1.1),0)
}