#Case-Sensitivity Problem

1 messages · Page 1 of 1 (latest)

karmic citrus
#

So I have this problem with needing to make the if loop for first-name not case sensitive meaning entering Diane or Mike in any case would allow for the discount to be true. Any idea how to do that?

misty orchidBOT
#

This post has been reserved for your question.

Hey @karmic citrus! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

flint topaz
#

I take it you haven't heard of equalsIgnoreCase?

karmic citrus
#

we havent learned it yet

flint topaz
#

without it it's going to be hard

#

Heard about how to make methods?

karmic citrus
#

i dont think ive heard of that

flint topaz
#

ah, toLowerCase() or toUpperCase() maybe?

karmic citrus
#

yeah

#

that ive heard of

flint topaz
#

okay so that's how

karmic citrus
#

so uh how do we do it

flint topaz
#

So you've heard, but you don't know how to use it?

karmic citrus
#

oh uh i know how to use it

#

well ok fair enough i see what youre getting at

flint topaz
#

I need to go to sleep, but I'll remind you that Strings can't be compared with ==

#

(Well, it does something that is absolutely not what you're interested in doing)