XtScript basics
XtScript is XtGem's own scripting language. It runs inside your pages, between <!--parser:xtscript--> and <!--/parser:xtscript-->.
B C D G I J P R S U V X
B
C
- comments Comments can be either single-line or multiline
- concatenation Concatenate strings (join two strings to create a third string)
- cookies Cookies can be set read and deleted using xtscript
- custom paging Xtgems blog filelist and paged content functions can use paging customised by a special Xt…
D
G
- get GET (and POST) html form and query string variables These can be read by Xtscript using th…
- goto Loops and jumps in Xtscript use the goto @ target command
I
- if The if statement creates the branches and switches of your Xtscript
- if and There is NO if ... and ... In Xtscripts if statement
- if elseif more switches
- if not or The if statement creates the branches and switches of your Xtscript
- if not or not The if statement creates the branches and switches of your Xtscript
- if or The if statement creates the branches and switches of your Xtscript
- includes Include a comma separated list of external or internal Xtscript files at this point
J
- js in xtscript All of xt:scripts functions and tools can be used to output fully customized javascript As…
P
- print print and print_raw sends output to the page
R
- return Return a value and exit the function or script
S
- source Display the "source code" of a LOCAL file in various ways
U
V
- var Variables can be defined by using assign or var
X