@arianashives - first you need to figure out the path to the outcome you want.
if you have two variables who have the same ‘value’ ie 5 each, then your result of subtracting one from the other = 0 .. that means they are tied.
if v1 = 5 and v2 =4, then the value of v1-v2 is positive and therefore the higher of that pair is v1
if v1 =4 and v2=5 then the value of v1-v2 is negative and the higher of the pair is v2.
what you need to do is to figure out the logic flow on a piece of paper then create the quiz. if you have the possibility of having ties and you want to do a tie breaker then you need to look at how you are going to do that - ie specific question to break a tie between v1 and v2 , v1 and v3 , v2 and v3 - for a three variable spot.
in your case where you have the following:
@a = 100
@b = 40
@c = 65
@d = 30
@e = 150
you would need to evaluate:
- a gt b, a gt c, a gt d, a gt e
- b gt c, b gt d, b gt e
- c gt d c gt e
- d gt e
once you have those variables figured out then you need to look at unique high scores for each
- if a gt b and a gt c and a gt d and a gt e then go to ending for unique a
- if b gt a (this is a negative value in a gt b calculation) and b gt c and b gt d and b gt e then go to ending for unique b
- etc. repeat for c, d, and e
next you need logic rules to examine a tie for high score, something like this:
- if A = B and A gt C and A gt D and A gt E then A and B are tied and have the highest score ( A-B =0 in the calculation) then you would need to go to a tie breaker
- you can choose to have a simple tie breaker for ANY tie at top score - “ok two or more scores were tied for the highest ranking. To break the tie, we are going to ask you another general question” ….and then take them wherever you want based on their response
- you can create individual questions to break ties at the high score level. how many questions to break the tie??
- AB, AC, AD, AE, BC, BD, BE, CD, CE, DE - at the two only tied
- ABC, ABD, ABE, ACD, ACE, ADE, BCD, BCE, CDE - at the three tied level
- ABCD, ABCE, ACDE, BCDE - at the four tied level
- ABCDE if all are tied.
- so that looks like 24 tie breaker questions you would need to implement to address breaking a specific tie.
that should help.. at least i hope it does lol
des