Results 1 to 3 of 3
  1. #1
    Newbie
    Join Date
    May 22nd, 2007
    Posts
    5
    How to compare the value of 2 string variables?
    Hello Everybody,

    Does anyone know if it is possible to write an If statement that compares the string values of two different variables.

    For example, I want to include some extra html in those cases where the name of the material (a string variable) is exactly the same as the name of the model (another string variable).

    So, I tried:

    [WM-If: Field: material = Field: model]

    but that doesn't seem to work.

    Any ideas?

    Jay

  2. #2
    Affiliate Manager
    Join Date
    January 18th, 2005
    Location
    Los Angeles, California
    Posts
    1,913
    Try removing the space between the "Field:" and the field name:

    [WM-If: Field:material = Field:model]

    If that doesn't do it please send me the template, settings file, and a >2MB portion of your source so I can work with it here.
    Richard Gaskin
    Developer of WebMerge: Publish any data feed on any site
    http://www.fourthworld.com

  3. #3
    Newbie
    Join Date
    May 22nd, 2007
    Posts
    5
    Thanks 4th World! I'll give it a try!

  4. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Google's Quality Score Variables
    By buyjewelry in forum Search Engine Optimization
    Replies: 4
    Last Post: May 16th, 2008, 12:51 AM
  2. variables as directories in url
    By markschok in forum Programming / Datafeeds / Tools
    Replies: 2
    Last Post: February 10th, 2004, 06:46 PM
  3. FLASH + variables?
    By c4 in forum Programming / Datafeeds / Tools
    Replies: 0
    Last Post: September 28th, 2002, 11:48 AM
  4. Find out your Server Environment Variables
    By Gordon in forum Midnight Cafe'
    Replies: 0
    Last Post: July 11th, 2002, 12:08 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
  •