Comparing strings
(Adding message template to the top of the page)
(Replacing message template with parser tag)
Line 1: Line 1:
{{message|Write the content here to display this box}}
<message>Write the content here to display this box</message>
If you want to compare two strings, case insensitive, use the following:
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

Revision as of 07:40, 17 June 2024

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