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/akselaengde-1.0.xml | |
parent | e403363cd666c783d2d750b12c6f5ac79da2faa3 (diff) |
Resumees now working
Diffstat (limited to 'server/xml/macros/akselaengde-1.0.xml')
-rw-r--r-- | server/xml/macros/akselaengde-1.0.xml | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/server/xml/macros/akselaengde-1.0.xml b/server/xml/macros/akselaengde-1.0.xml index b52ab7c..1a06b19 100644 --- a/server/xml/macros/akselaengde-1.0.xml +++ b/server/xml/macros/akselaengde-1.0.xml @@ -1,31 +1,24 @@ <?xml version='1.0' encoding='UTF-8'?> -<!-- - 20081203: Bent Bisballe Nyeng - Feltnavnene ændret så de giver mening. - --> -<!-- - 20090108: Bent Bisballe Nyeng - Højre/venstre byttet om. - --> -<!-- - 20090202: Bent Bisballe Nyeng - 'missing eye' tilføjet. - --> <macro name="akselaengde" version="1.0"> <resume language="lua"> out = '' - out = out .. 'Akselængde:\n' - if ( getValue('akselaengde.right.missing') == '' ) - out = out .. 'Højre øje: ' .. getValue('akselaengde.right.length') .. ' mm' + if ( getValue('akselaengde.right.missing') == '' or getValue('akselaengde.left.missing') == '' ) then + out = out .. 'Akselængde: ' .. getValue('akselaengde.method') .. '\n' end + if ( getValue('akselaengde.right.missing') == '' ) - out = out .. 'Venstre øje: ' .. getValue('akselaengde.left.length') .. ' mm' then + out = out .. 'Højre øje: ' .. getValue('akselaengde.right.length') .. '\n' + end + + if ( getValue('akselaengde.left.missing') == '' ) + then + out = out .. 'Venstre øje: ' .. getValue('akselaengde.left.length') .. '\n' end return out -</resume> + </resume> <queries> </queries> <maps> |