$(4)當(dāng)x\lt -1時(shí),原方程可化為-(x-2)-(x+1)=m,解得x=\frac{1-m}{2}$
$由x\lt -1,得-m\lt -1,解得m\gt 3$
$當(dāng)-1≤x≤2時(shí),原方程可化為-(x-2)+(x+1)=m,解得m=3;$
$當(dāng)x\gt 2時(shí),原方程可化為x-2+x+1=m,解得x=\frac{m+1}{2}$
$由x\gt 2,得\frac{m+1}{2}\gt 2.解得m\gt 3$
$綜上所述,當(dāng)m\gt 3時(shí),x的值有2個(gè);當(dāng)m=3時(shí),x的值有無數(shù)個(gè);當(dāng)0<m<3時(shí),x無解。$