dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: code dictionary please!

  1. #1
    Member
    Join Date
    Sep 2005
    Posts
    88

    code dictionary please!

    WHat does...

    } else {

    mean ?

    thankyou!

  2. #2
    Between Flash & Flashkit timothye's Avatar
    Join Date
    Dec 2003
    Location
    Sweden
    Posts
    1,666
    I want to learn .
    wannabe flasher [ Actionscript 2.0 ]

  3. #3
    An FKer
    Join Date
    Sep 2005
    Location
    Ontario
    Posts
    1,167
    Well,

    There is something called IF statements. These check if something is true or false. For example:

    You have a variable number = 1; called number that contains a number , and that number is one. Now say you wanted something to happen when this number changes to 2.

    An IF statment would do this:

    code:

    if (number == 2){
    //Something Happens
    }else{
    //Nothing Happens
    }



    So basically if the number IS 2, then something happens. OTHERWISE (or else), nothing will happen

    Understand?

  4. #4
    Member
    Join Date
    Sep 2005
    Posts
    88
    hmmm...I do understand! Thanks for the info! and for the link!

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