Results 1 to 3 of 3
  1. #1
    Newbie
    Join Date
    September 18th, 2006
    Posts
    4
    Another multi-criteria problem
    Two fields, affiliate and zip

    Conditions:
    Affiliate has text and zip says "free"
    Affiliate has text and zip contains zip
    Affiliate has text and zip is empty
    Affiliate is empty and zip contains zip
    Both fields are empty

    Since nesting if statements didn't seem to work, I tried sequential if statements. That doesn't seem to work, either, as every "statement" was printed. I may be staring at this too long, and the solution is simple, so a second set of eyes here would be helpful.

    [WM-If: Field: affiliate <> "" AND Field: zip = "free"]
    "statement 1"
    [/WM-If]
    [WM-If: Field: affiliate <> "" AND Field: zip contains "zip"]
    "statement 2"
    [/WM-If]
    [WM-If: Field: affiliate <> "" AND Field: zip = ""]
    "statement 3"
    [/WM-If]
    [WM-If: Field: affiliate = "" AND Field: zip contains "zip"]
    "statement 4"
    [/WM-If]
    [WM-If: Field: affiliate = "" AND Field: zip =""]
    "statement 5"
    [/WM-If]

    I created a work around, because I had a deadline: I've chopped the data into five separate files and processed each one thru a separate "detail" template. I add records at a rate of 40 to 60 a month, and don't really want to chop the data in five pieces each time, especially since I have to keep the data together for various index files.

    So what am I not seeing?

  2. #2
    Newbie
    Join Date
    September 18th, 2006
    Posts
    4
    Changed
    [WM-If: Field: affiliate <> "" AND Field: zip = "free"]
    to
    [WM-If: (Field: affiliate <> "") AND (Field: zip = "free")]

    Which generated an error log file stating:

    Error processing tag in Detail Template: [WM-If: (Field: affiliate <> "") and (Field: zip = "free")]
    Error processing tag in Detail Template: [WM-If: (Field: affiliate <> "") and (Field: zip contains "zip")]

    Still blind. Still need second set of eyes.

  3. #3
    Affiliate Manager
    Join Date
    January 18th, 2005
    Location
    Los Angeles, California
    Posts
    1,913
    Were there any other details provided in the error that was generated?
    Richard Gaskin
    Developer of WebMerge: Publish any data feed on any site
    http://www.fourthworld.com

  4. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Approval Criteria
    By ELD in forum Merchant Best Practices Forum
    Replies: 11
    Last Post: March 5th, 2008, 03:29 PM
  2. multiple criteria problem
    By tvsmvp in forum WebMerge (Fourthworld.com)
    Replies: 3
    Last Post: November 3rd, 2006, 05:45 PM
  3. Criteria for datafeeds changed.
    By suzigeek in forum Commission Junction - CJ
    Replies: 14
    Last Post: August 18th, 2005, 01:59 PM
  4. Multi Cheap Mini website vs Multi domain Hosting
    By probiz in forum Domains & Hosting
    Replies: 2
    Last Post: December 30th, 2003, 06:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •