Line edit minimum character count

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By siten0308


I have a line edit like this below:

onready var Username : LineEdit = $"/root/RegisterScreen/Menu/UserContainer/VBoxContainer/Username"

and i want the user to have a minimum character count set, so username has to be more than 4 characters, so i tried to do the above code… with an if statement…

but not sure what property to use for line edit… i looked on Godot documentation, but nothing stood out that was simple… any idea?

:bust_in_silhouette: Reply From: siten0308

sorry again everyone, found it:

if str(Password.text).length() < 6