Forum

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

Notifications
Clear all

Can the Set option choices be used to control script flow  

   RSS

0

In a set such as:

[set-nipple]
   choice=new
      option=alligator clamps
         weight=2
      option=clover clamps
         weight=1
      option=no clamps
      option=snack clamps
         weight=2
      option=clothespins
         weight=1
      option=nipple pump
         weight=3

When choice is made, say nipple pump, is the value stored in a variable that can be used to control script flow?

For example, option nipple pump when selected  I would set a flag with a duration of 15 min, but if the option was say alligator clamps I would want to set a flag with a duration of only 5 min.

 

1 Answer
0

Yes, you can. Like this:

[set-nipple]
choice=new
   option=alligator clamps
      weight=2
      OptionFlag=AlligatorOn
   option=clover clamps
      weight=1
   option=no clamps
   option=snack clamps
      weight=2
   option=clothespins
      weight=1
   option=nipple pump
      weight=3
      OptionFlag=NipplePumpOn

Read the chapter "Setting flags in instructions and clothing instructions" in the manual.

Beware that if you give new instructions of the same kind, the flags will be removes even though the time is not up.

Sven