How does Freemarker determine if two strings are equal?

In Freemarker, you can use the == operator to compare if strings are equal.

Below is an example:

<#if myString == "Hello World">
    字符串相等
<#else>
    字符串不相等
</#if>

In the above example, if the value of myString is “Hello World”, then output “Strings are equal”; otherwise output “Strings are not equal”.

bannerAds