out = '' if ( getValue('autorefraktion.mangler.odxt') == '' ) then out = out .. 'Autorefraktion, o.dxt: ' .. getValue('autorefraktion.sf.odxt') .. ' sf' if ( getValue('autorefraktion.cyl.odxt') ~= '' ) then out = out .. ', ' .. getValue('autorefraktion.cyl.odxt') .. ' cyl' end if ( getValue('autorefraktion.grader.odxt') ~= '' ) then out = out .. ', ' .. getValue('autorefraktion.grader.odxt') .. ' grader\n' else out = out .. '\n' end end if ( getValue('autorefraktion.mangler.osin') == '' ) then out = out .. 'Autorefraktion, o.sin: ' .. getValue('autorefraktion.sf.osin') .. ' sf' if ( getValue('autorefraktion.cyl.osin') ~= '' ) then out = out .. ', ' .. getValue('autorefraktion.cyl.osin') .. ' cyl' end if ( getValue('autorefraktion.grader.osin') ~= '' ) then out = out .. ', ' .. getValue('autorefraktion.grader.osin') .. ' grader\n' else out = out .. '\n' end end return out value = 0 timestamp = 0 source = '' if( missing_eye_odxt ) then if( missing_eye_odxt.value and missing_eye_odxt.value == '' ) then value = '' timestamp = missing_eye_odxt.timestamp source = missing_eye_odxt.source else value = 'mangler' timestamp = missing_eye_odxt.timestamp source = missing_eye_odxt.source end end return value, timestamp, source value = 0 timestamp = 0 source = '' if( missing_eye_osin ) then if( missing_eye_osin.value and missing_eye_osin.value == '' ) then value = '' timestamp = missing_eye_osin.timestamp source = missing_eye_osin.source else value = 'mangler' timestamp = missing_eye_osin.timestamp source = missing_eye_osin.source end end return value, timestamp, source