My current code retrieves the user's locale and saves it in a variable. I have implemented a conditional statement that checks if the locale matches a specific value - as shown in the image below:
https://i.sstatic.net/ASVZ8.png
In the screenshot, you can clearly see that the value of the locale is "sv-SE".
Following that, I have a conditional to check if the value of the locale is either "en-US" or "en-GB" within an if statement.
As expected, since the actual value of the locale is "sv-SE" and does not match any of the string values in the condition, the statement should evaluate to false. However, surprisingly, the if statement returns true and executes the code inside. How could this be happening?