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
PlatFormCloudPlatFormCloud 

System.Assert

I was reading the APEX guide provided by Salesforce. Can someone please elaborate the rationale (System.assert) of the below code:
 


String s;
System.assert('a' == 'A');
System.assert(s < 'b');
System.assert(!(s > 'b'));
Thanks!
 
PlatFormCloudPlatFormCloud
Sorry, I did not understand your solution. My query is - How one string is getting compared with another string?
NagendraNagendra (Salesforce Developers) 
Hi,

Please refer to the below link for the comparison of the strings 
http://salesforce.stackexchange.com/questions/80456/is-there-any-difference-in-equals-and-for-string-variables

Best Regards,
Nagendra.P