Jump to content

[LUA]create Big Letter


Tockra

Recommended Posts

Posted

Hello Guis,

i want do ask, how i can make out "h" "H" with an lua function?

Is it doable?

I want build a function, who returns from a string all variants of big and small letters Like : "te" = "te","tE","Te","TE"

Posted

Okay thank you...

One other question, exist a function, who make returns with all variant a table or must i do it alone, already ?

Posted
local typesofletter = "te" or "tE" or "Te" or "TE"

what is this?

afaik this will be true ;)

you mean table maybe?

anyway 'te' was an example.. wanna do the same for:

iamveryluckyman

? ;p

Posted
local typesofletter = "te" or "tE" or "Te" or "TE"

what is this?

afaik this will be true ;)

you mean table maybe?

anyway 'te' was an example.. wanna do the same for:

iamveryluckyman

? ;p

Did I just fail that bad? xD

Fuck tables I haven't done that shit yet. :(

iamverysillyman <-- You wanna do that one? :D

Posted
Did I just fail that bad? xD

i think so..

good idea is not to giving random advices when you dont know how to solve problem :P

iamverysillyman <-- You wanna do that one? :D

nope, but i can write a generator for it :P

Posted
Did I just fail that bad? xD

i think so..

good idea is not to giving random advices when you dont know how to solve problem :P

My understanding of it is vague, I just assumed that used in the right way that one could easily check if any of it's values exist. You've enlightened me :idea:

iamverysillyman <-- You wanna do that one? :D

nope, but i can write a generator for it :P

Get writing then :P

Posted
Get writing then :P

i dont think anybody really needs it :P

better way than checking all of possibilities it to do something like:

local mystring = "IamGOD"
local yourstring = "IAmgOd"
 
local result = compareNonCaseSensitive(mystring, yourstring)
if (result) then
outputChatBox("yes, strings are the same!")
else
outputChatBox("no, strings are different")
end
 
function compareNonCaseSensetive(str1, str2)
if (str1==nil or str2==nil) then return false end
if (string.lower(tostring(str1)) == string.lower(tostring(str2))) then
return true
else
return false
end
end

this will output yes, strings are the same!

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
  • Recently Browsing   0 members

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