Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Databases - Practical PostgreSQL
Previous Page Home Next Page

Using Variables and Objects

Variable values can be displayed anywhere in the body of an LXP region through the <putvar> tag. Here is the syntax for <putvar>, where variablename is the name of the variable whose value is to be displayed:

<putvar name="
variablename
" />

Variable values may also be set and reset via the <setvar> and <setvars> tags. Here is the syntax for these tags:

<setvar 
variablename
="
variablevalue
" />
<setvars 
variable1
="
value1
"
          
variable2
="
value2
"
          [...]
          />

Like variables, the values referenced by objects can also be displayed and set by the <putvar> and <setvar> tags.

Note: Remember that the use of either a dot (period) or square brackets in setting a name with <setvar> implies that you are setting a variable value to an object , rather than a plain variable. Such a value can therefore only be substituted later with the at sign, rather than the dollar sign.

Databases - Practical PostgreSQL
Previous Page Home Next Page

 
 
  Published under the terms of the Open Publication License Design by Interspire