+ 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?

Leo10Leo10
Hi
You have to split your custom label
Like
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