Particle Effect Script Help

How would I change this script so that when my cannonball prefab collides with something that has a tag of “enemy” it will spawn a blood splat particle effect, and if it collides with anything else it spawns a explosion particle effect?

void OnCollisionEnter(Collision collision)

{

 if(collision.gameObject.CompareTag("enemy"))

      // trigger the blood splatter effect

 else

      // trigger the explosion effect

}

so you want it to have a effect that shows blood when hit with an enemy and then a effect that shows an explosion when hitting the ground i would make 2 separate scripts one for the enemy tag and one for the ground tag