Results 1 to 3 of 3
  1. #1
    Newbie
    Join Date
    April 20th, 2009
    Posts
    11
    2 conditions in 1 WM tag
    I want to check 2 places at my database when i'm using WM

    I want to check 1 field to use equals and another field to check "not equals"

    Shortly

    [WM-If: Field: XXX = aaa AND Field:YYY <> = bbb]
    Compile here
    [/WM-If]

    if XXX field is aaa AND YYY field is bbb, then do the condition.

    How can we do this statement in Webmerge?

  2. #2
    Newbie
    Join Date
    April 20th, 2009
    Posts
    11
    sorry,at the end i wrote wrong

    it should be

    if XXX field is aaa AND YYY field is not bbb, then do the condition.

  3. #3
    Affiliate Manager
    Join Date
    January 18th, 2005
    Location
    Los Angeles, California
    Posts
    1,913
    Use parentheses to denote each condition, as in this example from the WebMerge Help page on the WM-If tag:

    [WM-If: (Field: Age < 18) OR (Field: Age > 65)]
    You qualify for a discount
    [WM-Else]
    The standard price applies
    [/WM-If]
    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. Can I put a fied tag in an include tag???
    By Doug247 in forum WebMerge (Fourthworld.com)
    Replies: 1
    Last Post: August 11th, 2003, 09:29 AM
  2. Script Tag or HTML tag?
    By bsnrjones in forum Cusimano.com Scripts
    Replies: 1
    Last Post: February 1st, 2003, 07:12 PM
  3. Smart Tag Meta Tag Not Working?
    By gettnthar in forum Suspicious Activity!
    Replies: 5
    Last Post: January 29th, 2002, 06:41 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
  •