Question: Conditional Statement
0
Matthias Dodt • 110 wrote:
i would like to nest different conditional statements in a tools xml
file:
<inputs>
<conditional name="tophat_input">
<param name="type1" type="select" label="input file format" optional="false">
<option value="fasta" selected="true">FASTA</option>
<option value="fastqsolexa">FASTQ-Solexa</option>
<option value="fastqsanger">FASTQ-Sanger</option>
</param>
<when value="fasta">
<conditional name="paired_end_fasta">
<param name="type2" type="select" label="Paired end
reads">
<option value="yes">Yes</option>
<option value="no" selected="true">No</option>
</param>
<when value="yes">
....
how do i access type2?
#if $tophat_input.paired_end_fasta.type2=="yes":
#--value=test
#end if
doesnt work!
thanks
mat
ADD COMMENT
• link
•
modified 9.2 years ago
by
James Taylor • 320
•
written
9.2 years ago by
Matthias Dodt • 110