XactCommerce Xact Objects
Home
News
XactCommerce
Typical Applications
Custom Development
Private Backend
XactScript Language
Performance
Deployment
Partners
Portfolio
About Us
leXml Language < Tags < leXml Tag Reference: set

The <_set> tag sets the value of a variable.

Body of the <_set> tag:

    The body of the tag is the value set to the variable.

Attributes of the <_set> tag:

    name=<variable name> (Required)
    The name attribute is the name of the variable (without preceding dollar sign) to set.

Examples of the <_set> tag:

    <_set name="variable">value</_set>



    <_set name="count">1</_set>



    <_set name="itemlisttemplate"><![CDATA[
       <tr><td bgcolor="#ffffff">
       <a href="iteminfo.lexml?item_id=##ID##"><img
       src="##TNPHOTO##"></a>
       </td><td bgcolor="#ffffff">
       <a href="iteminfo.lexml?item_id=##ID##">
       <b>##NAME##</b></a><br>
       ##SHORTDESC##<br>
       Weight: ##UNIT##<br>
       Price: $##PRICE##<br>
       ##SALE##
       </td></tr>
    ]]></_set>