Begin forwarded message:

From: Edward Kirton <edward.kirton@gmail.com>
Date: February 26, 2010 8:34:19 PM EST
To: Daniel Blankenberg <dan@bx.psu.edu>
Subject: Re: [galaxy-dev] create multiple historie items

unfortunately, no.  neither c.s nor c[s] forms work.

here's a simple test xml file that demonstrates that 2 files are
always created, even when 1 should be filtered by the conditional var.

<tool id='conditional_filter_test' name='conditional filter test'>
    <description>test</description>
    <command>
#if $opt.numbfiles == '1':
echo $opt.string1 > $outfile1
#else:
echo "1: $opt.string2" > $outfile1;
echo "2: $opt.string2" > $outfile2
#end if
    </command>
    <inputs>
        <conditional name='opt'>
            <param name='numbfiles' type='select' label='how many files'>
                <option value='1'>1</option>
                <option value='2'>2</option>
            </param>
            <when value='1'>
                <param name='string1' type='text' label='enter a string'/>
            </when>
            <when value='2'>
                <param name='string2' type='text' label='Enter a String'/>
            </when>
        </conditional>
    </inputs>
    <outputs>
        <data name='outfile1' format='txt'/>
        <data name='outfile2' format='txt'>
            <filter>opt[numbfiles] == 2</filter>
        </data>
    </outputs>
    <help>test</help>
</tool>

On Fri, Feb 19, 2010 at 6:19 AM, Daniel Blankenberg <dan@bx.psu.edu> wrote:

Hello,
Does e.g. do_full_assembly['create_ace_file'] work?
Dan