TestVariables: Difference between revisions

From FamilySearch Wiki
(Created to test Variable extension)
 
No edit summary
 
Line 1: Line 1:
{{#vardefineecho:a|3}}
a={{#vardefineecho:a|3}}<br>
{{#vardefineecho:b|5}}
b={{#vardefineecho:b|5}}


<!-- the following should create x=2*a + b = 11  -->
<!-- the following should create x=2*a + b = 11  -->


{{#vardefine:x|{{#expr:2*{{#var:a}}+{{#var:b}}}}}}
{{#vardefine:x|{{#expr:2*{{#var:a}}+{{#var:b}}}}}}
 
x=2*a+b={{#var:x}}
<br><br>
{{#var:variablename}}
 
 


[[Category:Testing]]
[[Category:Testing]]

Latest revision as of 23:08, 7 January 2019

a=3
b=5


x=2*a+b=11