Why not just nest them?

Code:
ON *:TEXT:*:*: {
  test1
  test2
}