Ping Arduino Led and Switch

if(distance > 10)
{
   // Distance is greater than 10. Note that there is no semicolon on the if statement
}