Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9237225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:29:18+00:00 2026-06-18T07:29:18+00:00

How do I ignore upper/lower case letters this is my code : if COMMAND_TEXT.Text

  • 0

How do I ignore upper/lower case letters this is my code :

if COMMAND_TEXT.Text = "command" then
    CONSOLE.AppendText("command entered!" & Environment.NewLine)
else
     CONSOLE.AppendText("Invalid command" & Environment.NewLine)
end if

I am making a simple console but when I try to enter : Command
it doesn’t find anything but when I enter : command it just executes the code I want.

Do I have to make every possible text?? Like this :

if COMMAND_TEXT.Text = "command" then
    CONSOLE.AppendText("command entered!" & Environment.NewLine)
elseif COMMAND_TEXT.Text = "Command" then
    CONSOLE.AppendText("command entered!" & Environment.NewLine)
elseif COMMAND_TEXT.Text = "COMMAND" then
    CONSOLE.AppendText("command entered!" & Environment.NewLine)
else
     CONSOLE.AppendText("Invalid command" & Environment.NewLine)
end if

Or is there an other easier way like in Java EqualsIgnoreCase

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T07:29:19+00:00Added an answer on June 18, 2026 at 7:29 am

    I would not recommend upper-casing or lower-casing as others have suggested. That can cause issues in some cultures, particularly Turkish. Instead, use String.Equals(String, StringComparison):

    If COMMAND_TEXT.Text.Equals("command", StringComparison.CurrentCultureIgnoreCase)
    

    You may want to use InvariantCultureIgnoreCase or OrdinalIgnoreCase – it depends on the context.

    I’d also strongly advise you to avoid shouty names like COMMAND_TEXT and use more conventional names instead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to put a ignore Upper/Lower case, punctuation, and spaces. Here is the
Take this example code (ignore it being horribly inefficient for the moment) let listToString
IE 7 seems to ignore this code. Any ideas? $(img[src='/v/vspfiles/templates/GFAR NEW NAV/images/Bullet_SubCategory.gif']).remove();
Ignore this question, just found a mistake in my code, flag to delete it
How can I ignore missing columns on iBatis resultMap? If I have this mapper
I need to ignore routes matching this schema /{controller}/edit/undefined {controller} - could be any
The Situation (Ignore this it is boring): I have reports that I created using
Edit: Ignore this, I figured it out about 3 seconds after posting this but
Please ignore whether a pattern like this is actually a good idea or not.
Python seems to completely ignore one of my objects - the games.Text object. Can't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.