Jump to content
  • 0

Max lenght characters insert prompt


MasterC

Question

7 answers to this question

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.