pc:assign-var-default

Previous Next

This directive is the same as pc:assign-var except that it has no effect on variables that have already been instantiated: their existing value is NOT overwritten.

Syntax

<pc:assign-var-default
     variable = "expr"
  [  variable = "expr" ... ] />

For each variable, variable identifies the variable by name and expr is the value you provide for the variable. Expr may be submitted either as a literal or as an XPath expression presented as an attribute value template, ie., surrounded by curly braces ( {  } ).

 

Example

<pc:assign-var-default
     username="ADMIN"
     workingdir="{directories:Get()}"
     servername="{path:GetFileName(directories:Get())}" />

 

See also

pc:assign-var

Variables

Blend input parameters