expression rule

Certified Associate Developer

Hi, I have a expression rule which has the result : Name - Company - Phoneno. 

I concatenated with "-" when I get the above 3 values.
In some cases, the name can be blank / company / phone no. If the name is blank, my result is like  -company-phoneno. 
If the phoneno is blank, then it's name-company-

How to remove the - if the value is not present ?

  Discussion posts and replies are publicly visible