Added ~ operator for when rules / Fixed base ML service event format bug