A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Simple variable prob

Hybrid View

  1. #1
    Senior Member chi-styler's Avatar
    Join Date
    Jul 2001
    Location
    Bristol, UK
    Posts
    1,237
    Hiya,
    I've a input box with a variable called test. Now i want to test if the box is empty. Is this wrong?

    if(test == "")
    {code}

    Thanks, Chi

  2. #2
    Member
    Join Date
    Oct 2001
    Posts
    44

    Unhappy

    Maybe You can try this:

    Code:
     if (test.length==0){
       ....
       }
    ZeroIQ

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center