Jump to content
  • 0

Max lenght characters insert prompt


MasterC
 Share

Question

7 answers to this question

Recommended Posts

  • 0
46 minutes ago, hoangninyb said:

P=gg.prompt({"A"},nil,{"text"}}

if string.lenP[1] > 10 then

    gg.alert("max char")

elseif not string.find("@") then

    gg.alert("not @")

end

Try this method Not work, error in string.lenP[1]

Link to comment
Share on other sites

  • 0
On 12/14/2021 at 2:13 PM, MonkeySAN said:
P=gg.prompt({"A"},nil,{"text"}}

if string.len(P[1]) > 10 then

    gg.alert("max char")

elseif not string.find("@") then

    gg.alert("not @")

end

 

And to numbers? 

 

If (Len) is characters 

And number? What command?

 

Ex: if values[1] <1 then

return prompt

end

 

Not work for me

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.