Question

How to set a variable ?

  • 17 March 2021
  • 2 replies
  • 95 views

Userlevel 1
Badge +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

Userlevel 1
Badge +1

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?

Userlevel 7
Badge +5

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