Advanced Conditions

I have a web form that sends an email to a user after successfully registering. Since this particular form allows empty email accounts, I have a condition that send them an email ONLY IF the email is not empty.
Email Condition = {email}!= ""
This works perfectly fine, but I now need another condition added. I do not want the auto email to send to anyone with an AOL address.
I have tried: {email}!="" && {email} NOT LIKE "%@aol.com"
(this is similar to what I would use in a standard SQL statement) but it does not work at all. It doesn't seem to accept the "NOT LIKE" statement. Obviously the "!=" will not work in the latter since it then looks for the wildcard symbol in the email :)
Does anyone have any suggestions?

Hi Sean,
SQL like comparison parameters don´t work when PHP is supposed to examine a text string ({email}) for a given substring (aol), so you´ll need to help yourself with PHP´s stristr() - function: http://de.php.net/manual/en/function.stristr.php
On that page you´ll find an "Example #2 Testing if a string is found or not", and I´d use this example in a modified form
Cheers,
Günter Schenk
Adobe Community Expert, Dreamweaver

Similar Messages

  • ATG Promotion  item discount  (Advance condition and Offer template)

    Hi Team ,
    We are using ATG Item Discount (Advance condition and Offer template ) .  Under this template we have Condition and Offer  .
    In condition we have specified ,   Apply Offer when  Order Quantity   =  3   and Order contains say SKU1 , SKU2,SKU3
    In Offer we have specified ,  Item to discount up to  = 9   and item to discount are  SKU1 , SKU2,SKU3
    We have a tricky requirement here  where customer wants Number of Items to discount should always  be multiple of  quantity that we specified in  Apply Offer when  Order Quantity field   based on how many quantities customer have added in the cart .
    Minimum quantity to qualify the offer would always be 3  and maximum item to discount would always remains 9 .
    If user add  quantity in the cart as 3   , then it should discount  3 Only .
    If user add  quantity in the cart between 3(exclude ) and 6(exclude) , then it should discount  3 quantities .
      If user add  quantity in the cart as 6  , then it should discount  6 quantities .
    If user add  quantity in the cart between 6(exclude ) and 9(exclude) , then it should discount maximum of 6 quantities .
    If user add  quantity in the cart as 9  , then it should discount maximum of 9 quantities
    > 9 items in the cart  , then it should discount only 9  .
    I am not able to map condition like this in this template  . Can you please guide me how we can achieve requirement like this in ATG  OOTB or by doing some sort of customization ?

    Hi ClareR
    Yes, I did. Here is the PMD rule
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <!DOCTYPE pricing-model SYSTEM "dynamosystemresource:/atg/dtds/pmdl/pmdl_1.0.dtd">
      <pricing-model>
        <qualifier>
          <iterator name="next" number="2" sort-by="priceInfo.listPrice" sort-order="descending">
            <collection-name>items</collection-name>
            <element-name>item</element-name>
            <element-quantity-property>quantity</element-quantity-property>
          </iterator>
        </qualifier>
        <offer>
          <discount-structure calculator-type="standard" discount-type="fixedPrice" adjuster="0">
            <target>
              <iterator name="up-to-and-including" number="1" sort-by="priceInfo.listPrice" sort-order="descending">
                <collection-name>items</collection-name>
                <element-name>item</element-name>
                <element-quantity-property>quantity</element-quantity-property>
              </iterator>
            </target>
          </discount-structure>
        </offer>
      </pricing-model>
    And in my cart I have 4 items
    Item 1 $22
    Item 2 $46
    Item 3 $24
    Item 4 $22
    The items that got the discount were Item 2 and Item 3, but we want to give as free item 3 and item 4 or 1 (because they have the same price). As you may see the BOGO is set up buy 2 and get one free. Someone told me in the version 10.1.2 you can set up Buy 1 and get one free, I am not sure if it is an issue on ATG 10.0.2 and if it is, do they have a path?
    Thanks,

  • Advanced conditional action issue

    I am using Captivate 7. I am experimenting with Advanced conditional actions.
    I am simulating a numerical keypad (0-9) with each number assigned to a click box.
    working with 4 digits.
    I need to impose limits for each of the 4 digits.
    Example:
    Digit 1 can only be a 0 or a 1
    Digit 2 can only be 0-5
    etc.
    I trying to prevent going to the next action when a wrong number is clicked.
    Looking for examples on how to properly implement this.

    Hello and welcome to the forum,
    Some years ago I created such a use case, would certainly change several things now with Captivate 7. I would recommend to make ieach key a shape button, so that it looks like a pressed key if the user clicks it. And I would also use shared actions without any doubt. But no time to work this out, sorry.
    Certainly not totally your use case, but perhaps have a look:
    http://blog.lilybiri.com/create-a-keypad-simulation-using-advanced-act
    Lilybiri

  • Advanced Conditions causing ORA-00904 invalid identifier

    I have another weird thing going on...
    It may be the complexity of the data I'm pulling, but I'm going to simplify the problem first...
    I have several conditions in my workbook that I need to be true regardless then I need the following (this is a payroll thing):
    ((Total Regular Hours > 40 AND Total Overtime = 0) OR (Total Overtime > 0 AND (Total Regular Hours - Total Overtime Hours) <> 40))
    So, I'm using Discoverer Plus 10g and if I create separate conditions for Total Overtime > 0 and (Total Regular Hours - Total Overtime Hours) <> 40) it will work, but if I try to combine them into one condition (so I can then add my OR and the other 2 conditions) it gives me the "ORA-00904 invalid identifier" error and will not run.
    The only way I've been able to do it is to create 3 conditions and 2 worksheets. That way, I can add (Total Regular Hours > 40 AND Total Overtime = 0) in one condition and apply it to one sheet; then I the other 2 separate conditions can be applied to the other worksheet.
    I hate having to have 2 worksheets when I should be able to create an advanced condition... anyone have any ideas?
    Regards,
    Emily

    It is actually a typo in the message because I have a calculated column that calculates the difference... sorry.
    I did try the idea of running the SQL that was generated in SQL Developer and it doesn't look right.
    It did all my other conditions under the where, but then where I would have thought it should do another and it did a WHERE.... see below. (I only pasted from the from statement on to save room)
    FROM HRBG_PEOPLE_ASSIGNMENT o393615, APPS.PTEN_PAY_BEE_V o393616
    WHERE ( (o393616.ASSIGNMENT_ID = o393615.ASSIGNMENT_ID))
    AND (o393615.BG_SECURITY_FLAG_CODE = 'Y')
    AND (o393616.DATE_EARNED BETWEEN o393615.ASSIGNMENT_START_DATE AND o393615.ASSIGNMENT_END_DATE AND o393616.DATE_EARNED BETWEEN o393615.RECORD_START_DATE AND o393615.RECORD_END_DATE)
    AND (o393616.DATE_EARNED IN (:"Date Earned Dates"))
    AND (o393616.EFFECTIVE_DATE = :"Period End Date")))))
    WHERE ( ( NP100 ) > 40 AND ( NP101 ) = 0)
    AND ( ( NP104 ) <> 40 AND ( NP105 ) > 0)
    ORDER BY E393849 ASC ;
    Do you see the WHERE that I marked in BOLD? That should be an AND...
    I even tried creating one crazy long condition to include everything in one and still got the same error and it produced the same SQL. I am thinking it has to do with the fact that I'm actually showing group totals for Regular Hours and Overtime and then subtracting them to get the difference. It all breaks when I add that difference in with the others. If I keep it separate, it does fine.
    By the way, the error I get when running just the SQL is "not all variables bound"
    Thanks,
    Emily

  • Advanced Conditional Action does work when I add second condition

    I am using CP 8. I can't figure out why I'm running into this problem. I have a series of If-Then conditional actions, but I'm running into problems. I've narrowed it down to this one problem.
    This is a simple check mark box that should either show the check mark or not.
    As long as I only have one condition, it works fine. As soon as I add the second condition, it stops working.
    Any suggestions? I appreciate the help!

    I have 6 statements. Some are true and some are false. I'm trying to communicate that the more false statements they assume, the bigger their problem. The size of the problem is represented by my "Hope" variable. This is used to show / hide a meter with 6 levels.
    Checkbox - 1. False Statement - Decrement Hope if they check
    Checkbox - 2. False Statement - Decrement Hope if they check
    Checkbox - 3. True Statement - Increment Hope if they check
    Checkbox - 4. False Statement - Decrement Hope if they check
    Checkbox - 5. True Statement - Increment Hope if they check
    Checkbox - 6. False Statement - Decrement Hope if they check
    My head started to spin when I thought about all the possibilities, so I was going to write an advanced action for each statement.
    Since my meter has 6 levels, I numbered them 5-10. Above, I show the one that is they are 10 or higher, then show all the meter levels. I thought I could add the additional condition that if the checkbox is 0 or 1, then, I'd either do the opposite of the score: decrement or increment. So, each checkbox would have 12 conditional statements:
    Statement One (False Statement) would be:
    Check Box, Hope = 10. Decrement. Show 4 Meters.
    Check Box, Hope = 9. Decrement. Show 3 Meters.
    etc.
    Uncheck Box, Hope = 10. Increment. Show 5 Meters.
    Uncheck Box, Hope = 9. Increment. Show 4 Meters.
    etc.
    It seems like that is causing problems in my sequencing for me. Which ever one I put first, it's going to go to the next one.
    Is this clear? I'm happy to send you the file if that helps.
    Thanks for the help!

  • Advanced Conditional biuld expression

    I realise this should be in a "new request" section of the
    forum but did not seem to find it.
    I extensively use conditional tags to not only differnatiate
    between content but also to biuld pages in order to include or
    exclude scripts and hyperlinks.
    The simple "exclude from output" is therefore not sufficient
    for me and need to use the advanced feature.
    Only problem is that it does not support parenthesis which
    makes conditions super long and only suport the operators AND, OR,
    AND NOT, OR NOT.
    Would be really nice if future updates would support more
    advanced boolean operators such as NOR, XOR, IN etc and more
    cruicially support the use of parenthesises.
    It does seem to respect the priority of an AND over an OR
    which is "nice"...

    This is the link you want.
    Rather than try to remember it, if you type "feature request"
    or "bug report" into the search field top right, you will be
    presented with a link to this page.
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • Alert advanced condition

    Hi,
    when I want to raise alert when logon user with specific ip address, I write:
    #SOURCE_EVENTID# ='100' and #HOST_IP# like '147.228.%'
    but this condition is not accepted (OAV-46562: error in Alert condition), what is wrong on this condition?
    When I write
    #SOURCE_EVENTID# ='100' and #HOST_IP# = '147.228.%'
    it is accepted but doesn't work...

    Will note# 876546 help you?
    - Kannan

  • Combining Conditional Actions in Advanced Actions

    I have created a Jeopardy game in Captivate.  There are 16 questions.  I have set an Advanced Action so that
    when all 16 questions are clicked on the user will go to "final Jeopardy".  What I can't figure out is to add that after 5 questions are clicked on for the user to go a different slide before they go back to the gameboard.  Can you add two conditional statements in one advanced action?

    Hello,
    You can combine as much decisions as you want in an Advanced Conditional action. Although the default number is 3, you can add as many as you want. Perhaps this video tutorial could help you:
    Customized feedback
    In my blog you can find quite a lot of examples of condtional actions with multiple decisions as well:
    lilybiri's posterous
    Lilybiri

  • Negative  values in red and Positive values in black CONDITIONAL FORMATTING

    Hi ... Everyone
    I have to show Negative values in red and Positive values in black in one of my report.
    i tried these conditions
    1. <?if:GAIN<0.00?><?attribute@inlines:color;'red'?><?end if?>
    but it shows negative values only in red ,positive values in black are missing
    2. <?if:GAIN<0.00?><?attribute@incontext:color;'red'?><?end if?><?if:GAIN>0.00?><?attribute@incontext:color;'black'?><?end if?>
    This gives the exact result what i wanted ...but the problem is i have five tables in my report ... so the above condition only allow changes in ONE TABLE ONLY. :(
    Plzzzz anyone who can help me to sort out my problem or else SUGGEST ANOTHER WORKING CONDITION
    Regards
    Subham Mittal

    Subham,
    This should not be difficult and moreover the BI Publisher Desktop installation comes with a set of examples:
    Start -> Programs -> BI Publisher Desktop -> Samples -> RTF Templates -> Advanced -> Conditional
    There you can find two templates with the exact same situation like yours, highlighting either the foreground color or background color.
    regards
    Jorge

  • [svn] 4756: Bug fix for universal Advanced CSS selectors.

    Revision: 4756
    Author: [email protected]
    Date: 2009-01-30 07:58:55 -0800 (Fri, 30 Jan 2009)
    Log Message:
    Bug fix for universal Advanced CSS selectors.
    1. In CSS, the universal selector * matches any element. It is often implied in selectors, such as the .foo class selector would formally be written *.foo { }. So, what we were previously calling "global selectors" will now be referred to as universal selectors. Flex retains its own special top level "global" selector to function as the root of the inheriting style prototype chain, but other universal selectors will not be associated with this special subject.
    2. When looking for universal selectors, we now match against all possible selectors that have * as the subject rather than trying to pick out specific styleName (class), id or pseudo conditions. This is needed as there may arbitrary advanced conditions in the selector chain, for example, descendant selectors that have a universal subject. Note this was the actual cause of the bug - but the other fixes were needed to separate "global" from "*".
    3. In the compiler, we'll still use the generated _globalStyles.as (i.e. from the "global" StyleDef collection of style declarations) as the place holder for universal selectors (as _*Styles.as would be an invalid ActionScript class name), though these universal selectors will report their subject as "*".
    4. When representing a selector in full as a String, we'll continue to omit "*" as the subject and substitute the empty string, so "*.foo" will be printed as ".foo".
    QA: Yes
    Doc: No
    Checkintests: Pass
    Reviewer: Paul
    Bugs:
    SDK-18196 - [Advanced CSS] Descendant selectors with class selectors like VBox .greenBox are not working correctly.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-18196
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSSelector.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleDef.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleDef.vm
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleModule.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleModule.vm
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StylesContainer.java

    Change this:
    <div class="mainnav">
    <li id="width-HealthWellness"><a href="#">Health/Wellness</a></li>
    <ul>
    <li>Flu Section</li>
    <li> Infection Control</li>
    <li> Nutrition</li>
    <li> Physical Fitness</li>
    <li>NIH Newsletters</li>
    </ul>
    to this:
    <div class="mainnav">
    <li id="width-HealthWellness"><a href="#">Health/Wellness</a>
         <ul>
         <li>Flu Section</li>
         <li> Infection Control</li>
         <li> Nutrition</li>
         <li> Physical Fitness</li>
         <li>NIH Newsletters</li>
         </ul>
    </li>
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com/

  • Problem with advanced action and a counter.

    Hi!
    I got a problem on a project with a counter and advanced action.
    I got 7 words (3 wrongs and 4 rights), each associate with captions that shows on click
    When the students had clicked on the 4 rights (and their captions are shown), the 3 wrongs captions are shown.
    variable:
    v_count
    on wrong words:
    simple action: on click, show captions
    on good ones:
    advanced conditional actions:
    1) IF 1=1, THEN show > caption and v_count = v_count + 1
    2) IF v_count=4, THEN show> all captions of the wrongs
    The problem is: (Only when seen in browser) when I click on 3 rights (and not 4), all captions are shown! I have tried to put v_count=5, but then nothing happens.
    Really, I'm lost! Have an idea of what could cause that problem?
    Thanks
    Laurie-Anne

    You already posted this question, thought I asked you if I could have access to your file, because with this explanation only it is a bit difficult to answer. But I cannot find the thread anymore...
    Maybe I'm wrong, or you did not see this answer?
    Lilybiri

  • Advance after user explores 3/5 possible exercises on 1 slide

    Ok - I think it is called a "loop" but I am not sure how to do it. I will try and paint a picture for you, I have an image and I have created 5 roll overs - each roll over is clickable and represents an exercise. I do not want the user to be able to move past this slide of exercises unless they have clicked on atleast 3 of the 5 roll overs (aka exercises).

    Hello,
    No need to apologize, have to ask this question in at least 50% of the postings
    I do not know if you already have some experience with the Advanced actions, and, BTW I'm not on a Mac?
    The idea is this:
    create a user variable, p.e. labeled v_counter that is initially set to the value=0
    create a Text Caption, p.e. labeled NotComplete on the slide, and set it invisible
    increment this variable with 1 when the user clicks on one of the exercises
    when the user wants to proceed (Next button?) attach an Advanced Conditional action to this button with:
    check if the variable v_counter has at least the value 3 (which means that the user did 3 exercises)
    if Yes: action 'Go to Next Slide' is executed
    if No: action 'Show NoComplete' is executed and the playhead is reset (rdcmndGotoFrameAndResume = rdinfoCurrentFrame - 1)
    If there is a possibility that users return on the slide, you'll need also an 'initializing' advanced action on entering the slide. This action will reset v_counter to 0 and hide the Text Caption NotComplete.
    FYI, published a video tutorial for conditional actions, where customized feedback is treated:
    Advanced condtional action for customized feedback
    And perhaps this article could be of some interest:
    Show conclusion based on Multiple scores
    Both are for CP4 in Win, never tried the Mac-version but since they are totally compatible, think it could be of help.
    Lilybiri

  • Performance of a report in Web Analysis??

    Hi Guys,
    •How do u improve the performance of report ?
    •In a general store 10 products are there, In that only 8 products are sold. I need a report for the products which are not sold(for 2 not sold). How can u do that report?(apart from Product normal dimension are there,we have a data warehouse for all)
    Thanks

    Hi, I agree with Gerd - there's not much tuning you can do in Web Analysis (as compared to FR).
    In looking at the query see if you can:
    - move single hierarchy members into the POV
    - have children and parent in the same row
    - arrange dimensions in inverse outline order (faster for essbase retrieves)
    - remove excessive formatting/suppression (or conditional formatting/suppression)
    - push report calculations back to the data source
    We have also found that using lots of dynamically calculated members also slows down reports, so try and limit the number of these.
    Maybe build your report up from the basic report to see which dimensions are causing the issue. Or alternatively start with your report and remove columns ;-)
    With regard to wishing to show only 2 items, you could add advanced conditional suppression to suppress rows with values.

  • Web Analysis Report performance

    Hi All,
    We are performing a drill to bottom level action by double click the account dimension in Web Analysis and SmartView. It will returns 9000+ rows records. In WA, it takes 160 seconds but SmartView only takes 20 seconds. We tried to increase the Java Heap Size from the WA Application Server and Java Plug-In Client but doesn't help much. Any idea why their is a big difference in performance? From the application log file in Essbase, we can see WA and SmartView are talking to Essbase in two different syntax.
    Thanks,
    Manoj

    Hi, I agree with Gerd - there's not much tuning you can do in Web Analysis (as compared to FR).
    In looking at the query see if you can:
    - move single hierarchy members into the POV
    - have children and parent in the same row
    - arrange dimensions in inverse outline order (faster for essbase retrieves)
    - remove excessive formatting/suppression (or conditional formatting/suppression)
    - push report calculations back to the data source
    We have also found that using lots of dynamically calculated members also slows down reports, so try and limit the number of these.
    Maybe build your report up from the basic report to see which dimensions are causing the issue. Or alternatively start with your report and remove columns ;-)
    With regard to wishing to show only 2 items, you could add advanced conditional suppression to suppress rows with values.

  • Two fill-in-the-blank answers from same list.

    I have a quiz question that is fill in the blank, two separate blanks.  The list of answers is exactly the same.  How do I insure that the learner does not use the same answer for both blank.  Example:  List two drinks that taste good to drink: 1. _________  2. __________   and the list is "coke, pepsi, Dr. Pepper, Sprite".  How do I make sure the learner does not list coke twice?
    I have Captivate 6......thanks 

    I do not think this will be possible with the default FIB slide. I would create a custom question slide, using either TEB's or TextArea widget for the 'blanks'. Then you'll be able to check the content of each of the variables that are associated with them, using an advanced conditional action.
    Lilybiri

Maybe you are looking for