File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4387,7 +4387,7 @@ appear as ``$options.selection_mode`` in Cheetah. Similarly ``options["vcf_outpu
43874387would appear as ``$options.vcf_output`` having the values ``'--vcf'`` when true and
43884388``''`` when false in Cheetah.
43894389
4390- ### Example
4390+ ### Example
43914391
43924392```xml
43934393 <inputs>
@@ -4412,6 +4412,30 @@ would appear as ``$options.vcf_output`` having the values ``'--vcf'`` when true
44124412 </data>
44134413 </outputs>
44144414```
4415+
4416+ Variables that have the type attribute ``select`` need a special python statement of
4417+ the form ``selection and "option" in selection`` inside the ``<filter>`` tags.
4418+
4419+ ### Example
4420+
4421+ ```xml
4422+ <inputs>
4423+ <param name="outputs" type="select" optional="true">
4424+ <option value="save_phase">Phase Movie</option>
4425+ <option value="save_period">Period Movie</option>
4426+ </param>
4427+ </inputs>
4428+
4429+ <outputs>
4430+ <data name="phase_out" format="tiff" label="${movie.name[:-4]}_phase">
4431+ <filter>outputs and "save_phase" in outputs</filter>
4432+ </data>
4433+ <data name="period_out" format="tiff" label="${movie.name[:-4]}_period">
4434+ <filter>outputs and "save_period" in outputs</filter>
4435+ </data>
4436+ </outputs>
4437+ ```
4438+
44154439]]> </xs : documentation >
44164440 </xs : annotation >
44174441 <xs : simpleContent >
You can’t perform that action at this time.
0 commit comments