A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: comparing variables

  1. #1

    comparing variables

    hi
    this is a very simple question but i can't work it out!

    i have five variables and i'd like to compare them to see which has the highest value and the do an action according to which is the highest

    i could do one saying

    if (A is bigger than B & C & D & E)
    do this
    else if (B is bigger than A & C & d & E)
    do this
    etc etc

    but it seems very clunky

    any ideas?
    thanks

  2. #2
    anyone ?
    :-)

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