SirniNamaz Posted October 12, 2012 Posted October 12, 2012 how to get true if string is longer that 3 chars, else false?
Kenix Posted October 12, 2012 Posted October 12, 2012 local s = 'Word' if #s > 2 then print( 'more 2 symbols' ) end You can use # or string.len Also # and string.len doesn't working with unicode. If you need working with unicode use utfLen
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now