Results 1 to 3 of 3
  1. #1
    Join Date
    May 22nd, 2007
    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?


  2. #2
    Affiliate Manager
    Join Date
    January 18th, 2005
    Los Angeles, California
    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

  3. #3
    Join Date
    May 22nd, 2007
    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 15th, 2008, 11:51 PM
  2. variables as directories in url
    By markschok in forum Programming / Datafeeds / Tools
    Replies: 2
    Last Post: February 10th, 2004, 05:46 PM
  3. FLASH + variables?
    By c4 in forum Programming / Datafeeds / Tools
    Replies: 0
    Last Post: September 28th, 2002, 10:48 AM
  4. Find out your Server Environment Variables
    By Gordon in forum Midnight Cafe'
    Replies: 0
    Last Post: July 11th, 2002, 11:08 AM

Posting Permissions

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