Variable calculation | Community
Skip to main content
Answered

Variable calculation


johnt
Forum|alt.badge.img+1
  • Socializer
  • 11 replies

I want to determine whether variable a is greater than variable b by a set margin (a number that I can change). Both of these variables are scores derived from a series of answers. For example, “is variable a > (variable b + 300)”.

I can’t see a way to compare variables. Grateful for any advice.

Best answer by john.desborough

@johnt  - not directly.. 

  • create variable v_b_plus_constant (as an example) and set the default value to your constant ie 3000
  • logic rules
    • add variable_b to v_b_plus_constant
    • subtract v_b_plus_constant from variable_a
    • if variable_a is greater than 0 then go to the ‘yes’ answer question/ending …

it’s not perfect but it works

des

View original

2 replies

john.desborough
Forum|alt.badge.img+6
  • Certified Partner & Champion
  • 5328 replies
  • Answer
  • May 27, 2025

@johnt  - not directly.. 

  • create variable v_b_plus_constant (as an example) and set the default value to your constant ie 3000
  • logic rules
    • add variable_b to v_b_plus_constant
    • subtract v_b_plus_constant from variable_a
    • if variable_a is greater than 0 then go to the ‘yes’ answer question/ending …

it’s not perfect but it works

des


johnt
Forum|alt.badge.img+1
  • Author
  • Socializer
  • 11 replies
  • May 28, 2025

Thanks John, that works.

I got as far as thinking that I need to create a third variable to represent the ‘surplus’ but couldn’t see how to take that further.

Thanks for your help.

John


Reply