+ Start a Discussion
smitha pais 8smitha pais 8 

If my custom label has two values "Yes" and "No" , how do i get just one value from it?

You have to split your custom label
String str=System.Label.<Your lable Name>;
String str2=str.split(',')[0];

you will get first value in 'str2'
if your custom label is yes,no. Then you will get yes in str2