How to set a variable ? | Community
Skip to main content
Question

How to set a variable ?


Forum|alt.badge.img+1

Hi,

I’d like to set a variable depending on the answer to a question but can’t see how to do it.

Example: if type = indoor, I want to set the variable I created @Indoor=1

Then I will use it later to display or not a question

Thanks a lot for your help

Dominique

 

 

2 replies

Forum|alt.badge.img+1
  • Author
  • Explorer
  • 12 replies
  • March 18, 2021

I found the answer by adding +1 to my variable but what if my variable is in a kind of loop ?

I don’t want to add 1 each time I pass in the loop but just set the variable to 1:

Variable = 1

NOT

Variable = Variable +1

Any suggestion?


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 15013 replies
  • March 18, 2021

Hi @doume06 thanks for stopping by the community! Would you mind providing a bit more info on what you’re building? For example, are you sending respondents backwards to the same question multiple times?


Reply