Search code examples
scriptingoperatorsnsis

Case sensitive string comparison in NSIS


${If} $9 == $8 

The above script in NSIS does a case insensitive string comparison, how can I ensure the comparison is made case sensitive


Solution

  • You should use the case-sensitive operator: S==

    From Logiclib documentation:

    Case-sensitive string tests (using System.dll):

    a S== b; a S!= b