Hi,
If the player entered only one character as his/her name in the text input field, I would like to have a NPC ask the player something like "Are you sure?” How can I set the condition by the length of text entered?
How can I conditionally branch on the length of text entered in TextInput()?
Re: How can I conditionally branch on the length of text entered in TextInput()?
Hi,
Use the string.len() function:
Use the string.len() function:
Re: How can I conditionally branch on the length of text entered in TextInput()?
Awesome, thank you for illustrating that! This is greatly helpful!