A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: If statement problem

  1. #1
    Junior Member
    Join Date
    Apr 2007
    Posts
    3

    If statement problem

    right now I'm trying to program a game. I have variables and then I have if statements to see if they are true. The problem is that the if statement

    if ( "variable" = true){...} is MAKING the variable true and not just checking it. Is there some way to resolve this? Thank you

  2. #2
    :
    Join Date
    Dec 2002
    Posts
    3,518
    variable = true, is assignment

    variable == true, is equality check

  3. #3
    Junior Member
    Join Date
    Apr 2007
    Posts
    3
    yeah, I remembered that right after I posted. Thanks you very much though for the speedy reply.

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