radios false = 0 ; i -= 1) { goodcode = goodcode and (num(getprop("/instrumentation/transponder/inputs/digit[" ~ i ~ "]")) != nil) ; code = code * 10 + (num(getprop("/instrumentation/transponder/inputs/digit[" ~ i ~ "]")) or 0); } setprop('/instrumentation/transponder/goodcode', goodcode); setprop('/instrumentation/transponder/id-code', code); } ]]> vbox hbox 1 1 table 0 1 0 4 0 6 0 7 1 0 right com1-selected 1 1 75 25 true /instrumentation/comm[0]/frequencies/selected-mhz dialog-apply com1-selected com1-standby 1 4 75 25 true /instrumentation/comm[0]/frequencies/standby-mhz dialog-apply com1-standby 2 0 right com2-selected 2 1 75 25 true /instrumentation/comm[1]/frequencies/selected-mhz dialog-apply com2-selected com2-standby 2 4 75 25 true /instrumentation/comm[1]/frequencies/standby-mhz dialog-apply com2-standby 3 0 right nav1-selected 3 1 75 25 true /instrumentation/nav[0]/frequencies/selected-mhz dialog-apply nav1-selected nav1-standby 3 4 75 25 true /instrumentation/nav[0]/frequencies/standby-mhz dialog-apply nav1-standby nav1-radial 3 6 75 25 true /instrumentation/nav[0]/radials/selected-deg dialog-apply nav1-radial 4 0 right nav2-selected 4 1 75 25 true /instrumentation/nav[1]/frequencies/selected-mhz dialog-apply nav2-selected nav2-standby 4 4 75 25 true /instrumentation/nav[1]/frequencies/standby-mhz dialog-apply nav2-standby nav2-radial 4 6 75 25 true /instrumentation/nav[1]/radials/selected-deg dialog-apply nav2-radial 5 0 right adf-selected 5 1 75 25 true /instrumentation/adf/frequencies/selected-khz dialog-apply adf-selected adf-standby 5 4 75 25 true /instrumentation/adf/frequencies/standby-khz dialog-apply adf-standby adf-radial 5 6 75 25 true /instrumentation/adf/rotation-deg dialog-apply adf-radial 6 0 right dme-selected 6 1 75 25 true /instrumentation/dme/frequencies/selected-mhz dialog-apply dme-selected hbox tacan-1 55 25 true /instrumentation/tacan/frequencies/selected-channel[1] 0 1 2 3 4 5 6 7 8 9 dialog-apply tacan-1 tacan-2 55 25 true /instrumentation/tacan/frequencies/selected-channel[2] 0 1 2 3 4 5 6 7 8 9 dialog-apply tacan-2 tacan-3 55 25 true /instrumentation/tacan/frequencies/selected-channel[3] 0 1 2 3 4 5 6 7 8 9 dialog-apply tacan-3 tacan-4 55 25 true /instrumentation/tacan/frequencies/selected-channel[4] X Y dialog-apply tacan-4 true hbox Tponder-1 55 25 true /instrumentation/transponder/inputs/digit[3] 0 1 2 3 4 5 6 7 dialog-apply Tponder-1 nasal Tponder-2 55 25 true /instrumentation/transponder/inputs/digit[2] 0 1 2 3 4 5 6 7 dialog-apply Tponder-2 nasal Tponder-3 55 25 true /instrumentation/transponder/inputs/digit[1] 0 1 2 3 4 5 6 7 dialog-apply Tponder-3 nasal Tponder-4 55 25 true /instrumentation/transponder/inputs/digit[0] 0 1 2 3 4 5 6 7 dialog-apply Tponder-4 nasal true Tponder-5 120 25 true /sim/gui/dialogs/radios/transponder-mode OFF STANDBY TEST GROUND ON ALTITUDE dialog-apply Tponder-5 nasal hbox 6 true true