Specialized Administration > Tailoring Business Objects > Object Initialization Rules Administration > Working with Object Initialization Rules > Rule Algorithms > Default Value Algorithms > Assigning Attribute Values Directly by Omitting Algorithms
  
Assigning Attribute Values Directly by Omitting Algorithms
You can assign the value of an attribute directly as the value of another attribute by omitting the algorithm used for defining the attribute value. When the algorithm for the attribute value is omitted, specifying only a single argument is allowed. The result of evaluating this single argument is returned as the result of evaluating the AttrValue element.
If more than one argument is specified when the algorithm is omitted, an exception is returned.
The following XML fragments show the use of omitting the algorithm to provide simple XML coding within rules.
To set the number attribute to the value of the name attribute, use the following:
<AttrValue id="number">
<Attr id="Name"/>
</AttrValue>
To set the number attribute to the value of the variable named GeneratedNumber, use the following:
<AttrValue id="number">
<VarRef id="GeneratedNumber"/>
</AttrValue>