I have a custom label ('hcv') which has values ICT;Thérapie;
I have a Text field in Vf page in which user enters a value and save it. Before saving, i need to check if the entered value is same as in label. else, it should show warning message.
If i use snippet,System.label.hcv.contains('test')
it works fine and shows error.
but for System.label.hcv.contains('CT') // not ICT as in label
it returns true (should return false for my case) because of 'contains'.
Is there a way to check for exact value.? my clients dont wanna use picklist value for this.