Copy link to clipboard
Copied
Ok so I have a game called "DCGame" and I need help with the guest login. Like when people type a nickname for the login. I would it not to accept no text entered. Could you help me?
Copy link to clipboard
Copied
Assign the textfield an instance name and use a condtional to test if the length property of the textfield is not zero.
if(yourTextFieldName.length > 0){
// do whatever
}
Copy link to clipboard
Copied
Should I put that code inside the button code or outside.
Copy link to clipboard
Copied
Only you can answer that. Put it wherever you need to check the textfield. Ideally, if you are coding in the timeline, all code should be in the main timeline.