Comparing strings
No edit summary
(Updated Edited template to July 12, 2025.)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
If you want to compare two strings, case insensitive, use the follow
<message>Write the content here to display this box</message>
If you want to compare two strings, case insensitive, use the following:
  <string 1>.compare(<string 2>, true) = 0
  <string 1>.compare(<string 2>, true) = 0
Read more here [https://learn.microsoft.com/en-us/dotnet/api/system.string.compare String.Compare method]
Read more here: [https://learn.microsoft.com/en-us/dotnet/api/system.string.compare String.Compare method]
{{Edited|July|12|2025}}
[[Category:OCL String Operators]]

Latest revision as of 05:47, 20 January 2025

This page was created by Lars.olofsson@mdriven.net on 2023-03-26. Last edited by Edgar on 2025-01-20.

If you want to compare two strings, case insensitive, use the following:

<string 1>.compare(<string 2>, true) = 0

Read more here: String.Compare method