Code:
if ( (cm2 >= 10) && (cm2 >= 10) )  // links und rechts min. 10cm frei
  {
    If (cm2 > cm3)
      Links();
    else
       Rechts();
  }