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

*Required attributes are shown in Brackets ([ ])
 
_xactscript Tag that must enclose as the root tag any XactScript document        
 
  Attributes: [name], [author], [version], [option]        
 
_arg An argument to a method call or constructor within a _load or _call tag        
 
  Attributes: name, [value]        
 
_onerror Can be used inside object loading or method calling tags to define what to run on error        
 
  Attributes: error        
 
_load Used to load an object        
 
  Attributes: name, class, [connection], [static]        
 
_call Used to call a method inside a loaded object or static reference        
 
  Attributes: name, method, [assign], [asarg], [quiet], [echo]        
 
_if Allows blocks of script to be executed or not based on expressions        
 
  Attributes: expr, [name, method, [assign], [asarg], [quiet], [echo]]        
 
_elseif Allows another if expression to be executed as an else condition to a previous _if        
 
  Attributes same as _if        
 
_else Marks a block of script as the else condition to an _if        
 
  No attributes        
 
_endif Ends an _if/_elseif/_endif block        
 
  No attributes        
 
_set Sets the value of a variable        
 
  Attributes: name, [value]        
 
_unset Removes a variable        
 
  Attributes: name        
 
_print Prints the contents of a variable to the output of the script        
 
  Attributes: name, format. Formats: normal, round, money, urlencode, urldecode, hex, uppercase, lowercase, propernouns, plural, hrfilesize, jsescape, xmlescape, xmlunescape, removereturns        
 
_stepthrough Allows lists of items to be iterated through, contents are executed for each iteration        
 
  Attributes: through, with, [counter], [mastercounter], [startat], [count]        
 
_stepinto Allows branches of treed lists to be "tunneled" into within a _stepthrough block        
 
  Attributes: into, [count], [depthcounter]        
 
_repeat Repeats a given block a certain number of times        
 
  Attributes: count, [counter]        
 
_break Breaks out of any looping tag        
 
  No attributes        
 
_jumpto Sets the item index in a _stepthrough block        
 
  Attributes: to        
 
_sub Sets a block to be callable via _gosub        
 
  Attributes: name, [transparent]        
 
_gosub Calls a block marked with _sub tags        
 
  Attributes: name        
 
_include Includes a local script or unparsed text file        
 
  Attributes: file, parsed        
 
_template Templates a section of a page        
 
  Attributes: name, frequency, [dependencies]        
 
_math Allows simple mathematical expressions with +, -, /, *, %, and ^ and parentheses        
 
  Attributes: expr, [assign], [echo], [echoformat]. Formats: decimal, round, money        
 
_end Stops script execution here        
 
  No attributes