BoonPek Posted January 5, 2010 Share Posted January 5, 2010 Hello Readers of this Topic, I am wondering if it is possible to make an 'If' Statement non case-sensitive. $Input = InputBox("Username", "Please enter your Username: ") If $Input = "User" Then MsgBox (48, "Username", "Username Correct!") Else MsgBox (48, "Username", "Username Wrong!") EndIf So that when I enter "user" instead of "User" it is still correct? Link to comment Share on other sites More sharing options...
jvanegmond Posted January 5, 2010 Share Posted January 5, 2010 (edited) If statements are not case sensitive by default. If you use == it becomes case sensitive.If statements are not case sensitive by default, you can use == to make them case sensitive.P.S. ByeEdit: Added ambiguity Edited January 5, 2010 by Manadar github.com/jvanegmond Link to comment Share on other sites More sharing options...
BoonPek Posted January 5, 2010 Author Share Posted January 5, 2010 (edited) The Code Snippet I put up, when you test it is case sensitive even without the '=='. Edit: Oops, lol, I made a mistake. I tested it only once and typed "Uesr" instead of "User". Thanks for your help. Edited January 5, 2010 by BoonPek Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now