Autoresponder conditional content: donation amount between 2 values

Options

How can I insert conditional content in an autoresponder, where the condition is donation amount between 2 values?

Tagged:

Comments

  • Hey Jill,

    to clarify, you want something like:

    if the donation amount is greater than 49 dollars, but less than 150 then display "this text."

    I don't actually think this is possible, unless those amounts in between were always the same (i.e. the amounts were always 50, 75 or 100). Convio s-tags (as far as I know) allow you to test for text equality and non-equality and empty and not empty, but NOT > or <

    You might be able to do what you want through javascript though. What would you want to do exactly?

  • Adrian Cotter:

    Hey Jill,

    to clarify, you want something like:

    if the donation amount is greater than 49 dollars, but less than 150 then display "this text."

    I don't actually think this is possible, unless those amounts in between were always the same (i.e. the amounts were always 50, 75 or 100). Convio s-tags (as far as I know) allow you to test for text equality and non-equality and empty and not empty, but NOT > or <

    You might be able to do what you want through javascript though. What would you want to do exactly?

    Hi Adrian - basically I want to do this:

    donation amount &lt; 100, display xxxxx

    donation amount &gt;= 100 and &lt; 1000, display yyyyy

    donation amount &gt;= 1000, display zzzzz

    I've figured out how to do what I need to display what I want for donation amounts &lt;= 100 and &gt;= 1000. But not sure how to do &gt; 100 and &lt; 1000.

    I'm thinking possibly "else" logic might be the way to go here, but I'm not seeing how to do that either.

    I don't know Javascript so I'm completely lost there.

  • Jill King:

    Hi Adrian - basically I want to do this:

    donation amount &lt; 100, display xxxxx

    donation amount &gt;= 100 and &lt; 1000, display yyyyy

    donation amount &gt;= 1000, display zzzzz

    I've figured out how to do what I need to display what I want for donation amounts &lt;= 100 and &gt;= 1000. But not sure how to do &gt; 100 and &lt; 1000.

    I'm thinking possibly "else" logic might be the way to go here, but I'm not seeing how to do that either.

    I don't know Javascript so I'm completely lost there.

    can you put in what you have so far? cut and paste from your page?

    when you do make sure to click the (?) icon to see how to put in code into the forum. otherwise it won't quite display correctly.

    Adrian

  • Adrian Cotter:

    can you put in what you have so far? cut and paste from your page?

    when you do make sure to click the (?) icon to see how to put in code into the forum. otherwise it won't quite display correctly.

    Adrian

    &lt;convio:choose xmlns="http://www.convio.com"&gt;&lt;convio:when title="Donation greater than 100" test="eq"&gt;&lt;convio:smileysurprised:p&gt;&lt;convio:session name="120" param="dc:isGiftAmountGreaterThan:100"&gt;&lt;/convio:session&gt;&lt;/convio:smileysurprised:p&gt;&lt;convio:smileysurprised:p&gt;true&lt;/convio:smileysurprised:p&gt;&lt;convio:then&gt;&lt;/convio:then&gt;&lt;/convio:when&gt;&lt;convio:when title="Donation less than 100" test="eq"&gt;&lt;convio:smileysurprised:p&gt;&lt;convio:session name="120" param="dc:isGiftAmountLessThan:100"&gt;&lt;/convio:session&gt;&lt;/convio:smileysurprised:p&gt;&lt;convio:smileysurprised:p&gt;true&lt;/convio:smileysurprised:p&gt;&lt;convio:then&gt;xxxxx&lt;/convio:then&gt;&lt;/convio:when&gt;&lt;convio:smileysurprised:therwise title="Donation equal 100"&gt;yyyyy&lt;/convio:smileysurprised:therwise&gt;&lt;/convio:choose&gt;&lt;convio:choose xmlns="http://www.convio.com"&gt;&lt;convio:when title="Donation greater than 1000" test="eq"&gt;&lt;convio:smileysurprised:p&gt;&lt;convio:session name="120" param="dc:isGiftAmountGreaterThan:1000"&gt;&lt;/convio:session&gt;&lt;/convio:smileysurprised:p&gt;&lt;convio:smileysurprised:p&gt;true&lt;/convio:smileysurprised:p&gt;&lt;convio:then&gt;zzzzz&lt;/convio:then&gt;&lt;/convio:when&gt;&lt;convio:when title="Donation less than 1000" test="eq"&gt;&lt;convio:smileysurprised:p&gt;&lt;convio:session name="120" param="dc:isGiftAmountLessThan:1000"&gt;&lt;/convio:session&gt;&lt;/convio:smileysurprised:p&gt;&lt;convio:smileysurprised:p&gt;true&lt;/convio:smileysurprised:p&gt;&lt;convio:then&gt;&lt;/convio:then&gt;&lt;/convio:when&gt;&lt;convio:smileysurprised:therwise title="Donation equal 1000"&gt;zzzzz&lt;/convio:smileysurprised:therwise&gt;&lt;/convio:choose&gt;

  • Jill King:

    &lt;convio:choose xmlns="http://www.convio.com"&gt;&lt;convio:when title="Donation greater than 100" test="eq"&gt;&lt;convio:smileysurprised:p&gt;&lt;convio:session name="120" param="dc:isGiftAmountGreaterThan:100"&gt;&lt;/convio:session&gt;&lt;/convio:smileysurprised:p&gt;&lt;convio:smileysurprised:p&gt;true&lt;/convio:smileysurprised:p&gt;&lt;convio:then&gt;&lt;/convio:then&gt;&lt;/convio:when&gt;&lt;convio:when title="Donation less than 100" test="eq"&gt;&lt;convio:smileysurprised:p&gt;&lt;convio:session name="120" param="dc:isGiftAmountLessThan:100"&gt;&lt;/convio:session&gt;&lt;/convio:smileysurprised:p&gt;&lt;convio:smileysurprised:p&gt;true&lt;/convio:smileysurprised:p&gt;&lt;convio:then&gt;xxxxx&lt;/convio:then&gt;&lt;/convio:when&gt;&lt;convio:smileysurprised:therwise title="Donation equal 100"&gt;yyyyy&lt;/convio:smileysurprised:therwise&gt;&lt;/convio:choose&gt;&lt;convio:choose xmlns="http://www.convio.com"&gt;&lt;convio:when title="Donation greater than 1000" test="eq"&gt;&lt;convio:smileysurprised:p&gt;&lt;convio:session name="120" param="dc:isGiftAmountGreaterThan:1000"&gt;&lt;/convio:session&gt;&lt;/convio:smileysurprised:p&gt;&lt;convio:smileysurprised:p&gt;true&lt;/convio:smileysurprised:p&gt;&lt;convio:then&gt;zzzzz&lt;/convio:then&gt;&lt;/convio:when&gt;&lt;convio:when title="Donation less than 1000" test="eq"&gt;&lt;convio:smileysurprised:p&gt;&lt;convio:session name="120" param="dc:isGiftAmountLessThan:1000"&gt;&lt;/convio:session&gt;&lt;/convio:smileysurprised:p&gt;&lt;convio:smileysurprised:p&gt;true&lt;/convio:smileysurprised:p&gt;&lt;convio:then&gt;&lt;/convio:then&gt;&lt;/convio:when&gt;&lt;convio:smileysurprised:therwise title="Donation equal 1000"&gt;zzzzz&lt;/convio:smileysurprised:therwise&gt;&lt;/convio:choose&gt;

    Ok, I see in that case then you could nest another choosing... so that if it is greater than 100, then you would test for 1000

    I did not try this code, so not 100% sure it works straight out of the box.

  • Adrian Cotter:

    Ok, I see in that case then you could nest another choosing... so that if it is greater than 100, then you would test for 1000

    I did not try this code, so not 100% sure it works straight out of the box.

    Adrian - thanks a million! I've tested your code and it works beautifully.

Categories