Genuinely curious - what's wrong with:
on *:text:!blah:#:{
if (somethin == somethinelse) { do this }
else { do this instead }
}
That would shrink the lines down WITHOUT using pipes. End of genuinely curious questioning of your apparent wonderful bot's coding