is it possible to use if's on the lines messaged to a channel using /play i.e. if $1 = Error set colour of line red?

or would I have to use $read?