Multiple variable validation

Results 1 to 2 of 2

Thread: Multiple variable validation

  1. #1
    SpeedwayMan Guest

    Default Multiple variable validation

    I have 7 variables RiderClub1 to RiderClub7.<BR><BR>How do I check if more than 2 of the variables are the same?<BR>

  2. #2
    Join Date
    Dec 1969

    Default Don't do it with multiple variables...

    Put the values into an array instead of (or in addition to) in individual variables.<BR><BR>Sort the array.<BR><BR>Then just check "adjacent" values in the array.<BR><BR>Tons faster than the multitude of ugly "IF"s you&#039;d need to use individual variables.<BR><BR>

Posting Permissions

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