Jump to content

Check if a box is blank


Lloyd Logan

Recommended Posts

Hey,

So from my experience with Java, if a field is empty it equals to

null 

.

So, if I want to check if an edit box has no letters/words in it, how would i go about it? So far i got;

function checkRegField() 
    inputusername = guiGetText(editusername) 
    if inputusername == "" then 
    guiSetVisible (GUIEditor.window[2], not guiGetVisible ( GUIEditor.window[2] ) ) 
    end 
end 

Thanks

Lloyd

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...