how to simply play a sound effect in Unity 5?

I am making a basic 2D platformer for web but have ran into a problem…

I am struggling to figure out how to play sound clips. More specifically how to select the one I want and play it in an if statement. I have 2 sound effects. Explosion and Jump. I have looked everywhere and all the tutorials about audio in Unity 5 are about single sound effects and all the other ones are for unity 4.

please could someone help me or point me in the direction of a tutorial?

Thanks in advance!

You play a clip in 5.x exactly the same way you would in 4.x:

AudioSource myAudioSource = GetComponent<AudioSource>(); 
myAudioSource.clip = yourAudioClip;
myAudioSource.Play();