Sliding down a slope

Does anyone know how to make an object slide down a sloped line smoothly? I will give 1 point to the first person with a good answer. 

if(slide==1)
{
//Physical Response 1 1 1 1
}
if(slide==0)
{
//Physical Response 1 1 0 0
}