Hi @popekabu Welcome to the community! Happy to have you here.
Technically, you canβt compare variables, but you could possibly attempt this with a workaround.
Could you tell us more about how you have your form built and how youβd like to compare the variables?
First of all, thank you @Liz for reaching out.
My form is built in the sense that every answer selected in each screen will give a point to a specific variable declared in the form already.
I have 10 variables and at the end of form, i want to compare all the variables and find out which has the largest and based on that a screen will appear.
How do i make the comparisons please?
Hi @popekabu Got it - thank you! I asked our support team about this in case they had any fancy workarounds, and they mentioned the following:
One way to compare variables would be to substract them and see if the result is bigger than 0 or not.
For instance diffSet1And2 = scoreSet1 - scoreSet2
if diffeSet1And2 > 0 it means that scoreSet1 > scoreSet2
I donβt know if this helps a bit, but hopefully it inspires some ideas!
@Liz - this thread also has the details in it.. where @popekabu also posted the same question.
there are other threads in this Community who have the same topic where advice and answers are provided.
des
Dear @Liz @Leslie , thank you unfortunately this will best work for two variables, am comparing 10 variables.
@popekabu - use a little common sense: you need to extend the logic out to every combination possible and do the evaluation. In the other thread, i posted a grid that showed you a 12 variable evaluation framework. You just need to use that and map the variable names that I showed to what yours are and then do the logic.
Iβve done this for over a dozen clients using this same framework. You just need to do the work to compare all the possible combinations.
Thanks @john.desborough. I weighed all of that and decided to build the project with a web framework using codes so that I can have full control. Wish I saw this limitation earllier before paying for Premium. Thank you for you time. Typeform needs to advance a bit though. @Liz Youre amazing. Thank you
Glad to hear you were able to find a solution that worked for you, @popekabu ! Let us know if we can help with anything else. 
Hello,
Can I have to link to the thread you mentionned where you compared 12 variables ? @john.desborough @Liz
Kind regards
Mlanie wrote:
Hello,
Can I have to link to the thread you mentionned where you compared 12 variables ? @john.desborough @Liz
Kind regards
@Mlanie - i donβt keep track of the links to the threads in which i post here, sorry. you will have to use the search function at the top of the page to try and find it (thatβs the same thing i would have to do)
des
Hi all, thanks for your contributions.
I have only a doubt still on this intricated topic, and I would appreciate your support to make this ideas land.
The necessity to consider all the different combinations of the variables is clear, but how to then do it in practice in typeform? There is no place that I could find exploring the UI, on the guides or on the community that would allow to create lines of code like the one that Liz added in pink.
Thank you!
Liz wrote:
Hi @popekabu Got it - thank you! I asked our support team about this in case they had any fancy workarounds, and they mentioned the following:
One way to compare variables would be to substract them and see if the result is bigger than 0 or not.
For instance diffSet1And2 = scoreSet1 - scoreSet2
if diffeSet1And2 > 0 it means that scoreSet1 > scoreSet2
I donβt know if this helps a bit, but hopefully it inspires some ideas!
@Made - you would put that in a series of logic rules:
- If scoreset1 GTE 0 then add scoreset1 to diffset1and2
- if scoreset2 GTE q then subtract scoreset2 from diffset1and2
- if diffset1and2 GT 0 then go to qX/ending A (an example)
- if diffset1and2 LTE 0 then go to qY/ending B
des
Hello @john.desborough , I'm facing a similar issue. I have six variables and six distinct form endings. Each form ending is determined by the highest value among these six variables. I'm struggling with comparing the variables to determine the pathway for each form ending. I've seen some of your explanations before, but as I'm relatively new to this, I could use some specific guidance.
@istko - there are several posts, as you mention, here in the Community that describe in detail how to do the evaluation. They can provide you with lots of guidance on how to start.
In your 6 categories is there an maximum score per category that is the same for every category ie max of 5, 10, 12, etc? whatβs the range of scores that can be achieved by category
What happens if there is a tie? do you have a tie-breaker question for every possible combination tied categories? 1 simple question for any ties or do you have separate tie breakers for A=B A=C A=D etc. combinations as high score?
all of these things need to be understood before you start to lay out your logic rules.
let me know your specifics and Iβll see if i have something that i can share
des