From 27d3a44257b60d5a3538f5f70cc644bc1715d8cf Mon Sep 17 00:00:00 2001 From: senator Date: Fri, 14 Aug 2009 09:14:22 +0000 Subject: Resumees now working --- server/xml/macros/pupilstoerrelse-1.0.xml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'server/xml/macros/pupilstoerrelse-1.0.xml') 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. --> - Pupilstørrelse: -Højre øje: ${pupilstoerrelse.right.diameter} mm -Venstre øje: ${pupilstoerrelse.left.diameter} mm - + + 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 + -- cgit v1.2.3