Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

{if} {/if} syntax problem

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-16-2005, 08:14 AM
 
Remo man Remo man is offline
 

Member
  
Join Date: Jul 2005
Posts: 15
 

Default {if} {/if} syntax problem

I have some code which I want in basic for to check if there is any information in a field and if so place a link and if not simply place a non breaking space. I looked at the code and thought this might work...

Code:
{if $product.efields ne ""} Click for sample}{else}{}{/if}

But it didn't ... so, any pointers?
__________________
X-CART: 4.0.14
United Kingdom
Reply With Quote
  #2  
Old 09-16-2005, 08:27 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

Code:
{else}{/if}
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:59 PM.

   

 
X-Cart forums © 2001-2020