Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

simple xml if statement with conditions 1

Status
Not open for further replies.

joe2k1

Technical User
Nov 10, 2008
1
CA
Hello everyone,

I have a question about if statements with xml. I need to ensure certain fields have a particular value, if this is true I want to display a large amount of text. Let me give an example below:

if fld_Country="Canada"
if fld_City="Toronto"
if fld_Member="1"
display the following text, "blah blah."

if fld_country"USA"
if fld_city="New York"
if fld_member="2"
display the following text, "blah blah."

if fld_country"Canada"
if fld_City="Toronto"
if fld_Member="2"
display the following text, "blah blah."

if fld_country"Canada"
if fld_City="Ottawa"
display the following text, "blah blah."

end if statements

I am not certain if this is possible to nest so many if statements within a single if statement. Should I use choices? Any advice would be greatly appreicated. Thanks.
Joe.


<?if@inlines:fld_COUNTRY='Canada'?>?fld_COUNTRY_DESCR?><?end if?>
 
>I am not certain if this is possible to nest so many if statements within a single if statement.
Positive.

>Should I use choices?
You could. If it makes the logic clearer, you should.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top