Jump to content

'If' Statement and Case Sensitivity


Recommended Posts

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

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 by BoonPek
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...