Difference between revisions of "Operator Element"
Jump to navigation
Jump to search
m
→Overview
imported>JRoush m (→Overview) |
imported>JRoush m (→Overview) |
||
Line 5: | Line 5: | ||
If the operator contains a literal number or string, that is used as the second operand. For example: | If the operator contains a literal number or string, that is used as the second operand. For example: | ||
<image> | <image> | ||
<x> | <x> | ||
<add> 1 </add> <!-- | <add> 1 </add> <!-- Add 1 to current x position --> | ||
</x> | </x> | ||
</image> | </image> | ||
However, Operators can instead refer to ''other properties'' for the value of their second operand, or even properties of ''other Object elements''. For example: | However, Operators can instead refer to ''other properties'' for the value of their second operand, or even properties of ''other Object elements''. For example: | ||
<image name="example_image> | <image name="example_image> | ||
<y> 5 </y> | <y> 5 </y> | ||
<x> <!--Add the value of the y coordinate (5) to the current x position --> | <x> <!--Add the value of the y coordinate (5) to the current x position --> | ||
<add src="example_image" trait="y"/> | <add src="example_image" trait="y"/> |