diff options
author | senator <senator> | 2009-08-14 09:14:22 +0000 |
---|---|---|
committer | senator <senator> | 2009-08-14 09:14:22 +0000 |
commit | 27d3a44257b60d5a3538f5f70cc644bc1715d8cf (patch) | |
tree | 5b6c73193d51c41cc815bc938d72c85cea103598 /server/xml/macros/pupilstoerrelse-1.0.xml | |
parent | e403363cd666c783d2d750b12c6f5ac79da2faa3 (diff) |
Resumees now working
Diffstat (limited to 'server/xml/macros/pupilstoerrelse-1.0.xml')
-rw-r--r-- | server/xml/macros/pupilstoerrelse-1.0.xml | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/server/xml/macros/pupilstoerrelse-1.0.xml b/server/xml/macros/pupilstoerrelse-1.0.xml index 7ec4c03..c2a771a 100644 --- a/server/xml/macros/pupilstoerrelse-1.0.xml +++ b/server/xml/macros/pupilstoerrelse-1.0.xml @@ -12,10 +12,25 @@ 'missing eye' tilføjet. --> <macro name="pupilstoerrelse" version="1.0"> - <resume language="pracro">Pupilstørrelse: -Højre øje: ${pupilstoerrelse.right.diameter} mm -Venstre øje: ${pupilstoerrelse.left.diameter} mm -</resume> + <resume language="lua"> + out = '' + if ( getValue('pupilstoerrelse.right.missing') == '' or getValue('pupilstoerrelse.left.missing') == '' ) + then + out = out .. 'Pupilstørrelse:\n' + end + + if ( getValue('pupilstoerrelse.right.missing') == '' ) + then + out = out .. 'Højre øje: ' .. getValue('pupilstoerrelse.right.diameter') .. ' mm\n' + end + + if ( getValue('pupilstoerrelse.left.missing') == '' ) + then + out = out .. 'Venstre øje: ' .. getValue('pupilstoerrelse.left.diameter') .. ' mm\n' + end + + return out + </resume> <queries> </queries> <maps> |