summaryrefslogtreecommitdiff
path: root/server/xml/macros/central_corneatykkelse-1.0.xml
diff options
context:
space:
mode:
authorsenator <senator>2009-08-14 09:14:22 +0000
committersenator <senator>2009-08-14 09:14:22 +0000
commit27d3a44257b60d5a3538f5f70cc644bc1715d8cf (patch)
tree5b6c73193d51c41cc815bc938d72c85cea103598 /server/xml/macros/central_corneatykkelse-1.0.xml
parente403363cd666c783d2d750b12c6f5ac79da2faa3 (diff)
Resumees now working
Diffstat (limited to 'server/xml/macros/central_corneatykkelse-1.0.xml')
-rw-r--r--server/xml/macros/central_corneatykkelse-1.0.xml23
1 files changed, 19 insertions, 4 deletions
diff --git a/server/xml/macros/central_corneatykkelse-1.0.xml b/server/xml/macros/central_corneatykkelse-1.0.xml
index f5ad9ce..e697bbc 100644
--- a/server/xml/macros/central_corneatykkelse-1.0.xml
+++ b/server/xml/macros/central_corneatykkelse-1.0.xml
@@ -12,10 +12,25 @@
'missing eye' tilføjet.
-->
<macro name="central_corneatykkelse" version="1.0">
- <resume language="pracro">Central corneatykkelse:
-Højre øje: ${central_corneatykkelse.right.thickness} mm
-Venstre øje: ${central_corneatykkelse.left.thickness} mm
-</resume>
+ <resume language="lua">
+ out = ''
+ if ( getValue('central_corneatykkelse.right.missing') == '' or getValue('central_corneatykkelse.left.missing') == '' )
+ then
+ out = out .. 'Central corneatykkelse:\n'
+ end
+
+ if ( getValue('central_corneatykkelse.right.missing') == '' )
+ then
+ out = out .. 'Højre øje: ' .. getValue('central_corneatykkelse.right.thickness') .. ' mm\n'
+ end
+
+ if ( getValue('central_corneatykkelse.left.missing') == '' )
+ then
+ out = out .. 'Venstre øje: ' .. getValue('central_corneatykkelse.left.thickness') .. ' mm\n'
+ end
+
+ return out
+ </resume>
<queries>
</queries>
<maps>