Skip to main content
Answer

Possible to compare variables for a persona quiz?

  • September 5, 2025
  • 4 replies
  • 53 views

Hello! I'm trying to build a persona quiz on Typeform and I need help with a specific scoring logic that seems to go beyond the standard quiz features.

My Goal: The quiz has 6 questions and 5 distinct outcomes (each corresponding to a different "superhero" based on one of our digital products). The final outcome for the user should be the superhero whose score is the highest.

The Specific Scoring Logic: The quiz has a weighted scoring system with two types of questions:

  1. 4 of the questions are "direct." Each answer option corresponds directly to one of the five outcomes. For these questions, I want the answer to be worth 2 points toward that specific outcome's score.
  2. 2 of the questions are "general." Each answer option can contribute points to multiple outcomes. For these questions, I want the answer to be worth 1 point, which can be distributed across 2 or 3 different outcomes.


What I Have Done:

  • created custom variables e.g. score_endingA, score_endingB, ….
  • set up branching at each question - if user answers option A, then add either 1 point or 2 points to ending A. if user answers option B, then add either 1 point or 2 points to ending B….
  • stuck because i cannot compare variables at my last question. ideally, if i can compare score_endingA > all the other score_endings, then lead to ending A.
    ​​​​​​​

Crucial Constraints (What I need to avoid):

  • The quiz is not based on a simple count of which answer option was chosen most frequently. The weighted points (1 vs. 2) must be taken into consideration for the final result.
  • The quiz is not a traditional score range quiz (e.g., 0-50 points = beginner). Our outcomes are separate and are determined by which one has the highest total score, not a score falling within a specific range.

My Question: What is the correct and most reliable way to configure this type of weighted, multi-outcome scoring on Typeform?

Thank you!

Best answer by john.desborough

@Grace ​@mlntngt  - there are a number of posts in here over the past several years about the logic rules for determining high score in this type of scenario (including simple and complex tie-breaker scenarios) .

i even created a couple of cheatsheets you can find at this link where i walk  through the logic details. 

des

 

4 replies

Grace
Community Team
Forum|alt.badge.img+5
  • Community Advocate
  • September 9, 2025

Hey ​@mlntngt thanks for providing so much detail with this one, seems like an interesting setup that you’re trying to create!

Wondering whether ​@john.desborough has any advice, have you created a quiz like this before?


john.desborough
Forum|alt.badge.img+6
  • Certified Partner & Champion
  • Answer
  • September 9, 2025

@Grace ​@mlntngt  - there are a number of posts in here over the past several years about the logic rules for determining high score in this type of scenario (including simple and complex tie-breaker scenarios) .

i even created a couple of cheatsheets you can find at this link where i walk  through the logic details. 

des

 


  • Author
  • Explorer
  • September 10, 2025

Thanks ​@Grace for looping in John – yes this is my first time trying to build a quiz with this level of custom logic, so really appreciate all the help I can get!

 

Thank you for sharing these cheatsheets ​@john.desborough, I’ll be sure to check them out!


Grace
Community Team
Forum|alt.badge.img+5
  • Community Advocate
  • September 10, 2025

Let us know how you get on with building the quiz ​@mlntngt 😊