function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Shubhangi JadhavShubhangi Jadhav 

How i can compare custom label values in apex class

Hi ,

Can anyone help me to get this code.

Regards,
Shubhangi
AbhishekAbhishek (Salesforce Developers) 
This blog (https://www.janbasktraining.com/blog/custom-labels-in-apex/) has a code snippet for your requirement.

Try it.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Thanks.
Jeffrey RedfernJeffrey Redfern
public List<SelectOption>FlagPickList{
        get{
            List<SelectOption> FlagOptions = new List<SelectOption>();
            FlagOptions.add(new SelectOption('All',Label.None));
            FlagOptions.add(new SelectOption('True',LabelTRUE));
            FlagOptions.add(new SelectOption( 'False',Label.FALSE));   
            return FlagOptions;
        }
    }

https://www.myaarpmedicare.top/