• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

How can I check if string is case sensitive?

Status
Not open for further replies.
Level 12
Joined
Dec 2, 2016
Messages
733
JASS:
if currPlayer == "RugarusVF" " then
   set players[i].name = "[RG]"+GetPlayerName(Player(i))
endif


Right now this will only change his name if his name is exactly RugarusVF and not if the name was for example 'rUgaRusVF'

How can I have it just match the characters and not be case restricted sort of speak?
 
One would also want to define a convention for listing user account names in your map that is either all upper case or all lower case. This means you would only need to convert the player name case and not the case of any constants your script uses.

I personally go with all lower case. Feels more modern and less shouty than all upper case.
 
Status
Not open for further replies.
Back
Top