Forum

Please note that you can subscribe to the individual forums. A subscription for news only covers the news.

Notifications
Clear all

Conditional Answers

   RSS

0
Topic starter

Hi Sven,

 

is it possible to hide certain options in a question definition.

In my script I have a particular question I want to a the sub, however the possible answers depend on the current state of the program.

 

In my current solution I define multiple versions of the same question and decide which one to show at any given time.

I am currently at 16 questions and 24 procedures. Which is tedious, error prone and if I wanted to add another possible answer I would need additional 16 questions and procedures.

With the ability to hide answers this could be reduced to one question and only one procedure per answer. (optional)

 

The syntax could work similar to the way the Select keyword works.

[question-MyQuestion]
  Phrase=My Question
  ?Option A=MyQuestionA
  ?Option B=MyQuestionB
  ?Option C=*
    If=#SomeCounter>5
    Message=Do something completely different....

[procedure-MyQuestionA]
  Message=Do something....

[procedure-MyQuestionB]
  If=SomeFlagIsSet
  Message=Do something else....
  • Option A: Would always be shown.
  • Option B: Would be shown when #SomeCounter is greater than 5
  • Option C: Is only visible if the SomeFlagIsSet flag is set.
Topic Tags
1 Answer
0

Hi DirtyDemon,

I'm afraid that it is not possible. And I think it would be too complicated to introduce.

You can use the same procedures if a lot of questions, but I don't see a way to reduce the number of questions.

Sven