<?xml version="1.0" encoding="UTF-8"?>
<SimBase.Document
        Type="AceXML"
        version="1,0"
        id="MCDU2b">
<Descr>AceXML Document</Descr>
<Filename>MCDU2b.xml</Filename>
<SimGauge.Gauge id="Gauge">
<FloatPosition>0.000,0.000</FloatPosition>
<Update_When_Hidden>True</Update_When_Hidden>
<Update id="MCDU2b">
<Frequency>6</Frequency>
<Script>
(L:MCDU2_TGLEXIT, number) 0 !=
if{
	(&gt; K:TOGGLE_AIRCRAFT_EXIT)
	
	(L:MCDU2_TGLEXIT, number) 2 ==
	if{
		(&gt; K:SELECT_2) }
		
	(L:MCDU2_TGLEXIT, number) 3 ==
	if{
		(&gt; K:SELECT_3) }
		
	(L:MCDU2_TGLEXIT, number) 4 ==
	if{
		(&gt; K:SELECT_4) }
		
	0 (&gt; L:MCDU2_TGLEXIT, number)
}

(L:DC_ESS_Avail, number) 1 ==
if{
	
<!-- LSK1L -->		
		<!-- Close Front Left Door -->
			(L:MCDU2_LSK1L, bool) 1 ==
			(L:MCDU2_Page, number) 2 == &amp;&amp;
			if{
				(L:MCDU2_Doors_Valid,bool) 1 == 
				(A:EXIT OPEN:0, percent) 5 &gt;=
				(L:MCDU2_Doors_Valid,bool) 0 == &amp;&amp; ||
				(L:MCDU2_FP_Load_Pax, number) 2 != &amp;&amp;
				if{			
					1 (&gt; L:MCDU2_TGLEXIT, number)
					0 (&gt; L:MCDU2_LSK1L, bool)
				}
			}
		<!-- Enter Load Page Pax -->
			(L:MCDU2_LSK1L, bool) 1 == 
			(L:MCDU2_Page, number) 14 == &amp;&amp;
			if{
				(L:Scratchpad_3digit_valid, bool) 1 ==
				(L:Scratchpad, number) (L:MCDU2_FP_max_Pax, number) &lt;= &amp;&amp;
				if{
					(L:Scratchpad, number) (&gt;L:AB_MCDU2_LS_PAX, number)
					1 (&gt;L:MCDU2_FP_Load_Pax, number)
					1 (&gt;L:AB_MCDU2_LS_Pax_Ent, bool)
					1 (&gt;L:AB_MCDU2_LS_Chg, bool)
					1 (&gt;L:Scratchpad_Rst, bool)
				}
				(L:Scratchpad_3digit_valid, bool) 0 ==
				if{
					1 (&gt;L:Scratchpad_invalid, bool)
				}
				(L:Scratchpad, number) (L:MCDU2_FP_max_Pax, number) &gt;
				if{
					1 (&gt;L:Scratchpad_invalid2, bool)
				}				
				0 (&gt; L:MCDU2_LSK1L, bool)
			}
		<!-- Enter Batterie Sound Volume -->
			(L:MCDU2_LSK1L, bool) 1 == 
			(L:MCDU2_Page, number) 16 == &amp;&amp;
			if{
				(L:Scratchpad_percent_valid, bool) 1 ==
				if{
					(L:Scratchpad, number) (&gt;L:ASC_Vol_Batteries, number)
					(L:Scratchpad, number) (&gt;L:set1_ASC_Vol_Batteries,number)
					1 (&gt; L:ASC_SET, number)
					5 (&gt; L:ASC_SAVE, number)					
					1 (&gt;L:Scratchpad_Rst, bool)
				}
				(L:Scratchpad_percent_valid, bool) 0 ==
				if{
					1 (&gt;L:Scratchpad_invalid2, bool)
				}
				0 (&gt; L:MCDU2_LSK1L, bool)
			}			
		<!-- Enter Load Setting Page Pax Weight -->
			(L:MCDU2_LSK1L, bool) 1 == 
			(L:MCDU2_Page, number) 15 == &amp;&amp;
			if{
				(L:Scratchpad_3digit_valid, bool) 1 ==
				if{
					(L:Scratchpad, number) (&gt;L:AB_MCDU2_LS_PAX_KG, number)
					1 (&gt;L:AB_MCDU2_Ls_Chg, bool)
					1 (&gt;L:Scratchpad_Rst, bool)
				}
				(L:Scratchpad_3digit_valid, bool) 0 ==
				if{
					1 (&gt;L:Scratchpad_invalid, bool)
				}
				0 (&gt; L:MCDU2_LSK1L, bool)
			}			
		<!-- Traffic Cones -->
			(L:MCDU2_LSK1L, bool) 1 == 
			(L:MCDU2_Page, number) 3 == &amp;&amp;
			if{
				(L:MCDU_cones, bool) ! (&gt; L:MCDU_cones, bool)
				0 (&gt; L:MCDU2_LSK1L, bool)
			}
		<!--Load Cold and Dark State -->		
			(L:MCDU2_LSK1L, bool) 1 == 
			(L:MCDU2_Page, number) 1 == &amp;&amp;
			(L:AB_ACFTState_Gnd_Avail, bool) 1 == &amp;&amp;
			if{
				1 (&gt; L:ASC_LOAD, number)
				1 (&gt; L:ASC_filetoload, number)
				1 (&gt; L:AB_CL_Reset, bool)
				0 (&gt; L:MCDU2_LSK1L, bool)
			}	
		<!-- View System Switch on Off -->
			(L:MCDU2_LSK1L, bool) 1 ==
			(L:MCDU2_Page, number) 6 == &amp;&amp; 
			if{
			   (L:ViewSys_Off,bool) ! (&gt; L:ViewSys_Off,bool)
			   (L:ViewSys_Off,bool) (&gt;L:set1_ASC_ViewSys_Off,number)
			   1 (&gt; L:ASC_SET, number)
               5 (&gt; L:ASC_SAVE, number)
               0 (&gt; L:MCDU2_LSK1L, bool)
			}
		<!-- Checklist ON OFF -->
				(L:MCDU2_LSK1L, bool) 1 ==
				(L:MCDU2_Page, number) 7 ==
				(L:MCDU2_Page, number) 8 == || &amp;&amp;
				if{ (L:AB_Checklist_Active,bool) 0 ==
					if{
						(L:AB_CL_Auto,bool) ! (&gt; L:AB_CL_Auto,bool)
						0 (&gt; L:MCDU2_LSK1L, bool)
						}
					}
		<!-- Checklist Delay OFF -->
				(L:MCDU2_LSK1L, bool) 1 ==
				(L:MCDU2_Page, number) 7 ==
				(L:MCDU2_Page, number) 8 == || &amp;&amp;
				if{	(L:AB_Checklist_Active,bool) 1 ==
					if{
						(L:AB_CL_Auto_Stop,bool) ! (&gt; L:AB_CL_Auto_Stop,bool)
						0 (&gt; L:MCDU2_LSK1L, bool)
						}
					}
		<!-- Cabin Crew Sound -->
			(L:MCDU2_LSK1L, bool) 1 ==
			(L:MCDU2_Page, number) 5 == &amp;&amp;
			if{
			   (L:AB_SND_CAB,bool) ! (&gt; L:AB_SND_CAB,bool)
			   (L:AB_SND_CAB,bool) (&gt;L:set1_ASC_AB_SND_CAB,Number)
			   1 (&gt; L:ASC_SET, number)
               5 (&gt; L:ASC_SAVE, number)			   
               0 (&gt; L:MCDU2_LSK1L, bool)
			}
		<!-- Flight Data Rec On -->
			(L:MCDU2_LSK1L, bool) 1 ==
			(L:MCDU2_Page, number) 10 == &amp;&amp;
			if{
			   (L:AB_FDR_On,bool) ! (&gt; L:AB_FDR_On,bool)
			   (L:AB_FDR_On,bool) (&gt;L:set1_ASC_AB_FDR_On,number)
			   1 (&gt; L:ASC_SET, number)
               5 (&gt; L:ASC_SAVE, number)
               0 (&gt; L:MCDU2_LSK1L, bool)
			}
		<!-- Pause at TOD -->
			(L:MCDU2_LSK1L, bool) 1 ==
			(L:MCDU2_Page, number) 11 == &amp;&amp;
			if{
			   (L:AB_TOD_Pause_On,bool) ! (&gt; L:AB_TOD_Pause_On,bool)
			   (L:AB_TOD_Pause_On,bool) (&gt;L:set1_ASC_AB_TOD_Pause_On,number)
			   1 (&gt; L:ASC_SET, number)
			   5 (&gt; L:ASC_SAVE, number)
               0 (&gt; L:MCDU2_LSK1L, bool)
			}
		<!-- FBW Disable -->
			(L:MCDU2_LSK1L, bool) 1 ==
			(L:MCDU2_Page, number) 12 == &amp;&amp;
			if{
			   (L:AP_FBW_Replay, bool) ! (&gt;L:AP_FBW_Replay, bool)
			   (L:AP_FBW_Replay, bool) (&gt;L:set1_ASC_AP_FBW_Replay, number)
			   1 (&gt; L:ASC_SET, number)
			   5 (&gt; L:ASC_SAVE, number)
               0 (&gt; L:MCDU2_LSK1L, bool)
			}			
		<!-- Open ACFT STATE Page -->
			(L:MCDU2_LSK1L, bool) 1 == 
			if{
				(L:MCDU2_Page, number) 0 ==
				(L:MCDU2_mouseclick_bypass, bool) 0 == &amp;&amp;
				(L:Load2, number) 1 == &amp;&amp;
				if{
					0 (&gt; L:ASC_Save_act, number)
					1 (&gt; L:MCDU2_Page, number)
					1 (&gt; L:MCDU2_mouseclick_bypass, bool)	
				}
				0 (&gt; L:MCDU2_mouseclick_bypass, bool)
			}
		<!-- Open Sound Options Page -->
			(L:MCDU2_LSK1L, bool) 1 == 
			if{
				(L:MCDU2_Page, number) 4 == (L:MCDU2_mouseclick_bypass, bool) 0 == &amp;&amp;
				if{
					5 (&gt; L:MCDU2_Page, number)
					1 (&gt; L:MCDU2_mouseclick_bypass, bool)	
				}
				0 (&gt; L:MCDU2_mouseclick_bypass, bool)
			}
		<!-- Shared cockpit toggle -->
			(L:MCDU2_LSK1L, bool) 1 == 
			if{
				(L:MCDU2_Page, number) 20 == (L:MCDU2_mouseclick_bypass, bool) 0 == &amp;&amp;
				if{
					(L:MP_CONN, bool) ! (&gt; L:MP_CONN, bool)

					(L:MP_START, bool) 1 ==
					if{
						1 (&gt;L:MP_TGL,bool) 
					}
						
					1 (&gt; L:MCDU2_mouseclick_bypass, bool)	
				}
				0 (&gt; L:MCDU2_mouseclick_bypass, bool)
			}	
			
			0 (&gt; L:MCDU2_LSK1L, bool)
<!-- LSK2L -->
		<!-- Skip Checklist Item -->
			(L:MCDU2_LSK2L, bool) 1 == 
			(L:MCDU2_Page, number) 8 == &amp;&amp;
			if{
				(L:CL_Skip_Item,bool) 0 ==
				(L:CL_Skip_Item_Avail,bool) 1 == &amp;&amp;
				if{
					1 (&gt;L:CL_Skip_Item,bool)
				}
				0 (&gt; L:MCDU2_LSK2L, bool)
			}
		<!-- Enter Load Page Cargo -->
			(L:MCDU2_LSK2L, bool) 1 == 
			(L:MCDU2_Page, number) 14 == &amp;&amp;
			if{
				(L:Scratchpad_2digit_valid, bool) 1 ==
				(L:Scratchpad_2digitST_valid, bool) 1 == ||
				(L:Scratchpad, number) (L:MCDU2_FP_max_Cargo, number) &lt;= &amp;&amp;
				if{
					1 (&gt;L:MCDU2_FP_Load_Cargo, number)				
					(L:Scratchpad, number) (&gt;L:AB_MCDU2_LS_CAR_KG, number)
					1 (&gt;L:AB_MCDU2_LS_Cargo_Ent, bool)
					1 (&gt;L:AB_MCDU2_LS_Chg, bool)
					1 (&gt;L:Scratchpad_Rst, bool)
				}
				(L:Scratchpad_2digit_valid, bool) 0 ==
				(L:Scratchpad_2digitST_valid, bool) 0 == &amp;&amp;
				if{
					1 (&gt;L:Scratchpad_invalid, bool)
				}
				(L:Scratchpad, number) (L:MCDU2_FP_max_Cargo, number) &gt;
				if{
					1 (&gt;L:Scratchpad_invalid2, bool)
				}				
				0 (&gt; L:MCDU2_LSK2L, bool)
			}
		<!-- Enter Avionics Sound Volume -->
			(L:MCDU2_LSK2L, bool) 1 == 
			(L:MCDU2_Page, number) 16 == &amp;&amp;
			if{
				(L:Scratchpad_percent_valid, bool) 1 ==
				if{
					(L:Scratchpad, number) (&gt;L:ASC_Vol_Avionics, number)
					(L:Scratchpad, number) (&gt;L:set1_ASC_Vol_Avionics,number)
					1 (&gt; L:ASC_SET, number)
					5 (&gt; L:ASC_SAVE, number)					
					1 (&gt;L:Scratchpad_Rst, bool)
				}
				(L:Scratchpad_percent_valid, bool) 0 ==
				if{
					1 (&gt;L:Scratchpad_invalid2, bool)
				}
				0 (&gt; L:MCDU2_LSK2L, bool)
			}			
		<!-- Close Aft Left Door -->
			(L:MCDU2_LSK2L, bool) 1 ==
			(L:MCDU2_Page, number) 2 == &amp;&amp;
			if{
				(L:MCDU2_Doors_Valid,bool) 1 == 
				(A:EXIT OPEN:1, percent) 5 &gt;=
				(L:MCDU2_Doors_Valid,bool) 0 == &amp;&amp; ||
				(L:MCDU2_FP_Load_Pax, number) 2 != &amp;&amp;
				if{			
					2 (&gt; L:MCDU2_TGLEXIT, number)
					0 (&gt; L:MCDU2_LSK2L, bool)
				}
			}
		<!-- Wheel Chocks -->
			(L:MCDU2_LSK2L, bool) 1 ==  
			(L:MCDU2_Page, number) 3 == &amp;&amp;
			if{
				(A:BRAKE PARKING POSITION, bool) 1 ==
				if{
					(L:MCDU_Wheelchocks, bool) ! (&gt; L:MCDU_Wheelchocks, bool)
				}
				0 (&gt; L:MCDU2_LSK2L, bool)
			}
		<!--Load Turn Around State -->		
			(L:MCDU2_LSK2L, bool) 1 == 
			(L:MCDU2_Page, number) 1 == &amp;&amp;
			(L:AB_ACFTState_Gnd_Avail, bool) 1 == &amp;&amp;
			if{
				2 (&gt; L:ASC_LOAD, number)
				2 (&gt; L:ASC_filetoload, number)
				1 (&gt; L:AB_CL_Reset, bool)
				0 (&gt; L:MCDU2_LSK2L, bool)
			}	
		<!-- Panelbar Switch on Off -->
			(L:MCDU2_LSK2L, bool) 1 ==
			(L:MCDU2_Page, number) 6 == &amp;&amp; 
			if{
				(L:ViewSys_Off,bool) 0 ==
				if{
				    (L:Panelbar_Off,bool) ! (&gt; L:Panelbar_Off,bool)
					(L:Panelbar_Off,bool) (&gt;L:set1_ASC_Panelbar_Off,number)
					1 (&gt; L:ASC_SET, number)
					5 (&gt; L:ASC_SAVE, number)
					0 (&gt; L:MCDU2_LSK2L, bool)
				}
			}			
		<!-- Flightcrew Sound -->
			(L:MCDU2_LSK2L, bool) 1 ==
			(L:MCDU2_Page, number) 5 == &amp;&amp;
			if{
			   (L:AB_SND_FC,bool) ! (&gt; L:AB_SND_FC,bool)
			   (L:AB_SND_FC,bool) (&gt;L:set1_ASC_AB_SND_FC,number)
			   1 (&gt; L:ASC_SET, number)
               5 (&gt; L:ASC_SAVE, number)
               0 (&gt; L:MCDU2_LSK2L, bool)
			}
		<!-- Pause at Next WP -->
			(L:MCDU2_LSK2L, bool) 1 ==
			(L:MCDU2_Page, number) 11 == &amp;&amp;
			if{
			   (L:AB_NextWP_Pause_On,bool) ! (&gt; L:AB_NextWP_Pause_On,bool)
			   (L:AB_NextWP_Pause_On,bool) (&gt;L:set1_ASC_AB_NextWP_Pause_On,number)
			   1 (&gt; L:ASC_SET, number)
               5 (&gt; L:ASC_SAVE, number)			   
               0 (&gt; L:MCDU2_LSK2L, bool)
			}
		<!-- ACFT Thrust Bump -->
			(L:MCDU2_LSK2L, bool) 1 ==
			(L:MCDU2_Page, number) 12 == &amp;&amp;
			if{
			   (L:AB_ThurstBump,bool) ! (&gt;L:AB_ThurstBump,bool)
			   (L:AB_ThurstBump,bool) (&gt;L:set1_ASC_AB_ThurstBump, number)
			   1 (&gt; L:ASC_SET, number)
			   5 (&gt; L:ASC_SAVE, number)
               0 (&gt; L:MCDU2_LSK2L, bool)
			}						
		<!-- Open ACFT DOORS Page -->
			(L:MCDU2_LSK2L, bool) 1 == 
			if{
				(L:MCDU2_Page, number) 0 ==
				(L:MCDU2_mouseclick_bypass, bool) 0 == &amp;&amp;
				(L:Load2, bool) 1 == &amp;&amp;
				if{
					2 (&gt; L:MCDU2_Page, number)
					1 (&gt; L:MCDU2_mouseclick_bypass, bool)	
				}
				0 (&gt; L:MCDU2_mouseclick_bypass, bool)
			}
		<!-- Open View Options Page -->
			(L:MCDU2_LSK2L, bool) 1 == 
			if{
				(L:MCDU2_Page, number) 4 == (L:MCDU2_mouseclick_bypass, bool) 0 == &amp;&amp;
				if{
					6 (&gt; L:MCDU2_Page, number)
					1 (&gt; L:MCDU2_mouseclick_bypass, bool)	
				}
				0 (&gt; L:MCDU2_mouseclick_bypass, bool)
			}
		<!-- Shared fltdeck sync disp -->
			(L:MCDU2_LSK2L, bool) 1 == 
			if{
				(L:MCDU2_Page, number) 20 == (L:MCDU2_mouseclick_bypass, bool) 0 == &amp;&amp;
				if{
					(L:MP_START, bool) ! (&gt; L:MP_START, bool)
					1 (&gt; L:MCDU2_mouseclick_bypass, bool)	
				}
				0 (&gt; L:MCDU2_mouseclick_bypass, bool)
			}
			0 (&gt; L:MCDU2_LSK2L, bool)
<!-- LSK3L -->	
		<!--Load Taxi State -->		
			(L:MCDU2_LSK3L, bool) 1 == 
			(L:MCDU2_Page, number) 1 == &amp;&amp;
			if{
				3 (&gt; L:ASC_LOAD, number)
				3 (&gt; L:ASC_filetoload, number)
				1 (&gt; L:AB_CL_Reset, bool)
				0 (&gt; L:MCDU2_LSK3L, bool)
			}
		<!-- Enter Load Page Fuel -->
			(L:MCDU2_LSK3L, bool) 1 == 
			(L:MCDU2_Page, number) 14 == &amp;&amp;
			if{
				(L:Scratchpad_2digit_valid, bool) 1 ==
				(L:Scratchpad_2digitST_valid, bool) 1 == ||
				(L:Scratchpad, number) (L:MCDU2_FP_max_Fuel, number) &lt;= &amp;&amp;				
				if{
					1 (&gt;L:MCDU2_FP_Load_Fuel, number)
					(L:Scratchpad, number) (&gt;L:AB_MCDU2_LS_FUEL_KG, number)
					1 (&gt;L:AB_MCDU2_LS_Fuel_Ent, bool)
					1 (&gt;L:AB_MCDU2_LS_Chg, bool)
					1 (&gt;L:Scratchpad_Rst, bool)
				}
				(L:Scratchpad_2digit_valid, bool) 0 ==
				(L:Scratchpad_2digitST_valid, bool) 0 == &amp;&amp;
				if{
					1 (&gt;L:Scratchpad_invalid, bool)
				}
				(L:Scratchpad, number) (L:MCDU2_FP_max_Fuel, number) &gt;
				if{
					1 (&gt;L:Scratchpad_invalid2, bool)
				}				
				0 (&gt; L:MCDU2_LSK3L, bool)
			}
		<!-- Enter Cooling Sound Volume -->
			(L:MCDU2_LSK3L, bool) 1 == 
			(L:MCDU2_Page, number) 16 == &amp;&amp;
			if{
				(L:Scratchpad_percent_valid, bool) 1 ==
				if{
					(L:Scratchpad, number) (&gt;L:ASC_Vol_Cooling, number)
					(L:Scratchpad, number) (&gt;L:set1_ASC_Vol_Cooling,number)
					1 (&gt; L:ASC_SET, number)
					5 (&gt; L:ASC_SAVE, number)					
					1 (&gt;L:Scratchpad_Rst, bool)
				}
				(L:Scratchpad_percent_valid, bool) 0 ==
				if{
					1 (&gt;L:Scratchpad_invalid2, bool)
				}
				0 (&gt; L:MCDU2_LSK3L, bool)
			}			
		<!-- Ext. Power GPU -->
			(L:MCDU2_LSK3L, bool) 1 == 
			(L:MCDU2_Page, number) 3 == &amp;&amp;
			if{
				(L:MCDU_EXTPOWERCART, bool) ! (&gt; L:MCDU_EXTPOWERCART, bool)
				0 (&gt; L:MCDU2_LSK3L, bool)
			}
		<!-- Panelbar View Mode -->
			(L:MCDU2_LSK3L, bool) 1 ==
			(L:MCDU2_Page, number) 6 == &amp;&amp; 
			if{
				(L:ViewSys_Off,bool) 0 ==
				if{
					(L:Panelbar_Mode_2D,bool) ! (&gt; L:Panelbar_Mode_2D,bool)
					(L:Panelbar_Mode_2D,bool) (&gt; L:set1_ASC_Panelbar_Mode_2D,number)
					1 (&gt; L:ASC_SET, number)
					5 (&gt; L:ASC_SAVE, number)
					0 (&gt; L:MCDU2_LSK3L, bool)
				}
			}
		<!-- Checklist Info Bar -->
			(L:MCDU2_LSK3L, bool) 1 ==
			if{
				(L:MCDU2_Page, number) 7 == 
				if{ 
					(L:AB_CL_Infobar,bool) ! (&gt; L:AB_CL_Infobar, bool)
					(L:AB_CL_Infobar,bool) (&gt;L:set1_ASC_AB_CL_Infobar,number)
					1 (&gt; L:ASC_SET, number)
					5 (&gt; L:ASC_SAVE, number)
					0 (&gt; L:MCDU2_LSK3L, bool)
				}
			}
		<!-- ATC Sound -->
			(L:MCDU2_LSK3L, bool) 1 ==
			(L:MCDU2_Page, number) 5 == &amp;&amp;
			if{
			   (L:AB_SND_ATC,bool) ! (&gt; L:AB_SND_ATC,bool)
			   (L:AB_SND_ATC,bool) (&gt;L:set1_ASC_AB_SND_ATC,number)
			   1 (&gt; L:ASC_SET, number)
               5 (&gt; L:ASC_SAVE, number)			   
               0 (&gt; L:MCDU2_LSK3L, bool)
			}
			
		<!-- Start Cockpit Prep CL -->
			(L:MCDU2_LSK3L, bool) 1 ==
			(L:MCDU2_Page, number) 8 == &amp;&amp; (L:AB_CL_Auto,bool) 1 == &amp;&amp; (L:AB_CL_FlightPrepAvail,bool) 1 == &amp;&amp;
			if{
			   1 (&gt;L:CL_CockpitPrep_Init,bool)
               0 (&gt; L:MCDU2_LSK3L, bool)
			}
		<!--Set Pushback Turn Delay Plus -->			
			(L:MCDU2_LSK3L, bool) 1 ==
			(L:MCDU2_Page, number) 13 == &amp;&amp;
			(L:PROC_Push_Init, number) 1 == &amp;&amp;
			if{
				(L:AB_Pushback_TurnDelay,number) 250 &lt;
				if{
					(L:AB_Pushback_TurnDelay,number) ++ (&gt;L:AB_Pushback_TurnDelay,number)
					0 (&gt; L:MCDU2_LSK3L, bool)
				}	
			}
		<!-- Tiller -->
			(L:MCDU2_LSK3L, bool) 1 ==
			(L:MCDU2_Page, number) 12 == &amp;&amp;
			if{
				(L:AB_Tiller_Enabled, number) ! (&gt;L:AB_Tiller_Enabled, number)
			    (L:AB_Tiller_Enabled, number) (&gt;L:set1_ASC_AB_Tiller_Enabled, number)
			   	1 (&gt; L:ASC_SET, number)
				5 (&gt; L:ASC_SAVE, number)
                0 (&gt; L:MCDU2_LSK3L, bool)
			}			
		<!-- Open Ground Services Page -->
			(L:MCDU2_LSK3L, bool) 1 == 
			if{
			(L:MCDU2_Page, number) 0 ==
			(L:MCDU2_mouseclick_bypass, bool) 0 == &amp;&amp;
			(L:Load2, bool) 1 == &amp;&amp;
			if{
					3 (&gt; L:MCDU2_Page, number)
					1 (&gt; L:MCDU2_mouseclick_bypass, bool)	
			   }
			}
		<!-- Open Checklist Options Page -->
			(L:MCDU2_LSK3L, bool) 1 == (L:MCDU2_CL_Valid,bool) 1 == &amp;&amp;
			if{
				(L:MCDU2_Page, number) 4 == (L:MCDU2_mouseclick_bypass, bool) 0 == &amp;&amp;
				if{
					7 (&gt; L:MCDU2_Page, number)
					1 (&gt; L:MCDU2_mouseclick_bypass, bool)	
				  }
				  0 (&gt; L:MCDU2_mouseclick_bypass, bool)
			}
		<!-- Shared fltdeck sync disp -->
			(L:MCDU2_LSK3L, bool) 1 == 
			if{
				(L:MCDU2_Page, number) 20 == (L:MCDU2_mouseclick_bypass, bool) 0 == &amp;&amp;
				if{
					(L:MP_STS, number) 1 ==
					if{					
						(L:MP_SYNCDSP, bool) ! (&gt; L:MP_SYNCDSP, bool)
					}
					1 (&gt; L:MCDU2_mouseclick_bypass, bool)	
				}
				0 (&gt; L:MCDU2_mouseclick_bypass, bool)
			}
			0 (&gt; L:MCDU2_LSK3L, bool)
<!-- LSK4L -->		
		<!--Load Take Off State -->
			(L:MCDU2_LSK4L, bool) 1 == 
			(L:MCDU2_Page, number) 1 == &amp;&amp;
			if{
				4 (&gt; L:ASC_LOAD, number)
				4 (&gt; L:ASC_filetoload, number)
				1 (&gt; L:AB_CL_Reset, bool)
				0 (&gt; L:MCDU2_LSK4L, bool)
			}	
		<!-- Ext. Power -->
			(L:MCDU2_LSK4L, bool) 1 == 
			(L:MCDU2_Page, number) 3 == &amp;&amp;
			if{
				(L:MCDU_EXTPOWER, bool) ! (&gt; L:MCDU_EXTPOWER, bool)
				0 (&gt; L:MCDU2_LSK4L, bool)
			}
		<!-- Panelbar Position -->
			(L:MCDU2_LSK4L, bool) 1 ==
			(L:MCDU2_Page, number) 6 == &amp;&amp; 
			if{
				(L:ViewSys_Off,bool) 0 ==
				if{
					(L:Panelbar_Left_Init,bool) ! (&gt; L:Panelbar_Left_Init,bool)
					(L:Panelbar_Left_Init,bool) (&gt;L:set1_ASC_Panelbar_Left_Init,number)
					1 (&gt; L:ASC_SET, number)
					5 (&gt; L:ASC_SAVE, number)
					0 (&gt; L:MCDU2_LSK4L, bool)
				}
			}
		<!-- Enh GPWS Switch -->
			(L:MCDU2_LSK4L, bool) 1 ==
			(L:MCDU2_Page, number) 5 == &amp;&amp; 
			if{
			   (L:AB_Enh_GPWS,bool) ! (&gt; L:AB_Enh_GPWS,bool)
			   (L:AB_Enh_GPWS,bool) (&gt;L:set1_ASC_AB_Enh_GPWS,number)
			   1 (&gt; L:ASC_SET, number)
               5 (&gt; L:ASC_SAVE, number)			   
               0 (&gt; L:MCDU2_LSK4L, bool)
			}
		<!-- Enter GPWS Sound Volume -->
			(L:MCDU2_LSK4L, bool) 1 == 
			(L:MCDU2_Page, number) 16 == &amp;&amp;
			if{
				(L:Scratchpad_percent_valid, bool) 1 ==
				if{
					(L:Scratchpad, number) (&gt;L:ASC_Vol_GPWS, number)
					(L:Scratchpad, number) (&gt;L:set1_ASC_Vol_GPWS,number)
					1 (&gt; L:ASC_SET, number)
					5 (&gt; L:ASC_SAVE, number)				
					1 (&gt;L:Scratchpad_Rst, bool)
				}
				(L:Scratchpad_percent_valid, bool) 0 ==
				if{
					1 (&gt;L:Scratchpad_invalid2, bool)
				}
				0 (&gt; L:MCDU2_LSK4L, bool)
			}			
		<!-- Auto Rudder -->
			(L:MCDU2_LSK4L, bool) 1 ==
			(L:MCDU2_Page, number) 12 == &amp;&amp;
			if{
				(L:FBWAUTORUDGND, bool) ! (&gt; L:FBWAUTORUDGND, bool)
			    (L:FBWAUTORUDGND, bool) (&gt;L:set1_ASC_FBWAutoRudGnd,number)
			   	1 (&gt; L:ASC_SET, number)
				5 (&gt; L:ASC_SAVE, number)
                0 (&gt; L:MCDU2_LSK4L, bool)
			}
		<!--Set Pushback Turn Delay Minus -->			
			(L:MCDU2_LSK4L, bool) 1 ==
			(L:MCDU2_Page, number) 13 == &amp;&amp;
			(L:PROC_Push_Init, number) 1 == &amp;&amp;
			if{
				(L:AB_Pushback_TurnDelay,number) 9 &gt;
				if{
					(L:AB_Pushback_TurnDelay,number) -- (&gt;L:AB_Pushback_TurnDelay,number)
					0 (&gt; L:MCDU2_LSK4L, bool)
				}
			}			
		<!-- CL Cop Hotkey On Off -->
			(L:MCDU2_LSK4L, bool) 1 ==
			(L:MCDU2_Page, number) 7 == &amp;&amp;
			if{
				(L:AB_CL_HotKey_Off,bool) ! (&gt;L:AB_CL_HotKey_Off,bool)
			    (L:AB_CL_HotKey_Off,bool) (&gt;L:set1_ASC_CL_HotKey_Off,number)
			   	1 (&gt; L:ASC_SET, number)
				5 (&gt; L:ASC_SAVE, number)
                0 (&gt; L:MCDU2_LSK4L, bool)
			}			
		<!-- Open Options Page -->
			(L:MCDU2_LSK4L, bool) 1 ==
			if{
			(L:MCDU2_Page, number) 0 == (L:MCDU2_mouseclick_bypass, bool) 0 == &amp;&amp;
			if{
					4 (&gt; L:MCDU2_Page, number)
					1 (&gt; L:MCDU2_mouseclick_bypass, bool)	
			   }
			}
		<!-- Open FDR Options Page -->
			(L:MCDU2_LSK4L, bool) 1 == 
			if{
			(L:MCDU2_Page, number) 4 == (L:MCDU2_mouseclick_bypass, bool) 0 == &amp;&amp;
			if{
					10 (&gt; L:MCDU2_Page, number)
					1 (&gt; L:MCDU2_mouseclick_bypass, bool)	
			   }
			}
		<!-- Shared fltdeck sync Wx -->
			(L:MCDU2_LSK4L, bool) 1 == 
			if{
				(L:MCDU2_Page, number) 20 == (L:MCDU2_mouseclick_bypass, bool) 0 == &amp;&amp;
				if{
					(L:MP_STS, number) 1 ==
					if{	
						(L:MP_SYNCWX, bool) ! (&gt; L:MP_SYNCWX, bool)
					}
					1 (&gt; L:MCDU2_mouseclick_bypass, bool)	
				}
				0 (&gt; L:MCDU2_mouseclick_bypass, bool)
			}
			0 (&gt; L:MCDU2_LSK4L, bool) 0 (&gt; L:MCDU2_mouseclick_bypass, bool)			
<!-- LSK5L -->
		<!-- Open Fuel Load Page -->
			(L:MCDU2_LSK5L, bool) 1 ==
			(L:MCDU2_Page, number) 0 == &amp;&amp;
			if{
				(L:MCDU2_mouseclick_bypass, bool) 0 ==
				if{
					14 (&gt; L:MCDU2_Page, number)
					1 (&gt; L:Enable_MCDU2_Scratchpad, number)
					1 (&gt; L:MCDU2_mouseclick_bypass, bool)	
				}
				0 (&gt; L:MCDU2_LSK5L, bool)
			}			
		<!--Load User State -->		
			(L:MCDU2_LSK5L, bool) 1 == 
			(L:MCDU2_Page, number) 1 == &amp;&amp;
			if{
				1 (&gt; L:ASC_LOADSAVE_DLG, number)
				0 (&gt; L:MCDU2_LSK5L, bool)
			}
		<!-- Enter Load Page CG -->
			(L:MCDU2_LSK5L, bool) 1 == 
			(L:MCDU2_Page, number) 14 == &amp;&amp;
			if{
				(L:Scratchpad_2digit_valid, bool) 1 ==
				if{
					(L:Scratchpad, number) (&gt;L:AB_MCDU2_LS_CG, number)
					1 (&gt;L:AB_MCDU2_Ls_Chg, bool)
					1 (&gt;L:Scratchpad_Rst, bool)
				}
				(L:Scratchpad_2digit_valid, bool) 0 ==
				if{
					1 (&gt;L:Scratchpad_invalid, bool)
				}
				0 (&gt; L:MCDU2_LSK5L, bool)
			}			
		<!-- Panelbar Sound Switch -->
			(L:MCDU2_LSK5L, bool) 1 ==
			(L:MCDU2_Page, number) 6 == &amp;&amp; 
			if{
				(L:ViewSys_Off,bool) 0 ==
				if{
					(L:Panelbar_Snd_Mute,bool) ! (&gt; L:Panelbar_Snd_Mute,bool)
					(L:Panelbar_Snd_Mute,bool) (&gt; L:set1_ASC_Panelbar_Snd_Mute,number)
					1 (&gt; L:ASC_SET, number)
					5 (&gt; L:ASC_SAVE, number)
					0 (&gt; L:MCDU2_LSK5L, bool)
				}
			}
		<!-- Start Descent Prep Checklist -->
			(L:MCDU2_LSK5L, bool) 1 ==
			(L:MCDU2_Page, number) 9 == &amp;&amp;
			if{
				(L:AB_CL_Auto,bool) 1 ==
				(L:AB_CL_DescentPrepAvail,bool) 1 == &amp;&amp;
				if{
					1 (&gt;L:AB_CL_DescentPrep_Init,bool)
			        0 (&gt; L:MCDU2_LSK5L, bool)
				}
			}
		<!-- Start and Pushback Procedure -->
			(L:MCDU2_LSK5L, bool) 1 ==
			(L:MCDU2_Page, number) 8 == &amp;&amp; (L:AB_PROC_StartAvail,bool) 1 == &amp;&amp;
			if{
			   1 (&gt; L:PROC_Push_Init, number)
			   2 (&gt;L:AB_PROC_StartCmpl,number)
			   13 (&gt; L:MCDU2_Page, number)
               0 (&gt; L:MCDU2_LSK5L, bool)
			}
		<!-- Open Flight Options Page -->
			(L:MCDU2_LSK5L, bool) 1 == 
			if{
			(L:MCDU2_Page, number) 4 == (L:MCDU2_mouseclick_bypass, bool) 0 == &amp;&amp;
			if{
					11 (&gt; L:MCDU2_Page, number)
					1 (&gt; L:MCDU2_mouseclick_bypass, bool)	
			   }
			}
			0 (&gt; L:MCDU2_LSK5L, bool) 0 (&gt; L:MCDU2_mouseclick_bypass, bool)
<!-- LSK6L -->
		<!-- Save User State -->		
			(L:MCDU2_LSK6L, bool) 1 == 
			(L:MCDU2_Page, number) 1 == &amp;&amp;
			if{
				2 (&gt; L:ASC_LOADSAVE_DLG, number)
				0 (&gt; L:MCDU2_LSK6L, bool)
			}
        <!-- Load LoadSheet Values -->
			(L:MCDU2_LSK6L, bool) 1 ==
			(L:MCDU2_Page, number) 14 == &amp;&amp;
			if{
				1 (&gt;L:AB_MCDU2_LS_REQ, number)
				0 (&gt; L:MCDU2_FP_Load_Pax, number)
				0 (&gt; L:MCDU2_FP_Load_Cargo, number)
				0 (&gt; L:MCDU2_FP_Load_Fuel, number)
				0 (&gt; L:MCDU2_FP_Load_Instant, number)
				0 (&gt;L:AB_MCDU2_Ls_Chg, bool)
               0 (&gt; L:MCDU2_LSK6L, bool)
			}
		<!-- Load Default Sound Volume -->
			(L:MCDU2_LSK6L, bool) 1 == 
			(L:MCDU2_Page, number) 16 == &amp;&amp;
			if{
				95 (&gt;L:ASC_Vol_Batteries, number)
				95 (&gt;L:set1_ASC_Vol_Batteries, number)				
				95 (&gt;L:ASC_Vol_Avionics, number)
				95 (&gt;L:set1_ASC_Vol_Avionics, number)				
				92 (&gt;L:ASC_Vol_Cooling, number)
				92 (&gt;L:set1_ASC_Vol_Cooling, number)					
				100 (&gt;L:ASC_Vol_GPWS, number)
				100 (&gt;L:set1_ASC_Vol_GPWS, number)				
				98 (&gt;L:ASC_Vol_Checklist_PF, number)
				98 (&gt;L:set1_ASC_Vol_Checklist_PF, number)				
				97 (&gt;L:ASC_Vol_Checklist_PnF, number)
				97 (&gt;L:set1_ASC_Vol_Checklist_PnF, number)				
				90 (&gt;L:ASC_Vol_ATC, number)
				90 (&gt;L:set1_ASC_Vol_ATC, number)				
				93 (&gt;L:ASC_Vol_CabinCrew, number)
				93 (&gt;L:set1_ASC_Vol_CabinCrew, number)				
			   	1 (&gt; L:ASC_SET, number)
				5 (&gt; L:ASC_SAVE, number)				
				0 (&gt; L:MCDU2_LSK4L, bool)
			}				
        <!-- Start Procedure -->
			(L:MCDU2_LSK6L, bool) 1 ==
			(L:MCDU2_Page, number) 8 == &amp;&amp;
			(L:AB_PROC_StartAvail,bool) 1 == &amp;&amp;
			if{
			   (L:AB_PROC_Start,bool) ! (&gt; L:AB_PROC_Start,bool)
               0 (&gt; L:MCDU2_LSK6L, bool)
			}
		<!-- AES On -->
			(L:MCDU2_LSK6L, bool) 1 ==
			(L:MCDU2_Page, number) 7 == &amp;&amp; 
			if{
				(L:AB_AES_On,bool) ! (&gt; L:AB_AES_On,bool)
				(L:AB_AES_On,bool) (&gt;L:set1_ASC_AB_AES_On,number)
				1 (&gt; L:ASC_SET, number)
				5 (&gt; L:ASC_SAVE, number)					
				0 (&gt; L:MCDU2_LSK6L, bool)
			}
		<!-- Sim View Mode Test -->
			(L:MCDU2_LSK6L, bool) 1 ==
			(L:MCDU2_Page, number) 6 == &amp;&amp;
			if{
				(L:AB_Sim_detect,number) ! (&gt;L:AB_Sim_detect,number)
				(L:AB_Sim_detect,number) (&gt;L:set1_ASC_AB_Sim_detect,number)
				1 (&gt; L:ASC_SET, number)
				5 (&gt; L:ASC_SAVE, number)
                0 (&gt; L:MCDU2_LSK6L, bool)
			}			
			0 (&gt; L:MCDU2_LSK6L, bool)
<!-- LSK1R -->
		<!-- Set Default Cold and Dark State -->		
			(L:MCDU2_LSK1R, bool) 1 == 
			(L:MCDU2_Page, number) 1 == &amp;&amp;
			if{
				1 (&gt;L:AB_ACFTState_Default, number)
				1 (&gt;L:set1_AB_ACFTState_Default,number)				
				1 (&gt; L:ASC_SET, number)
				5 (&gt; L:ASC_SAVE, number)				
				0 (&gt; L:MCDU2_LSK1R, bool)
			}
		<!-- Start Pax Boarding -->		
			(L:MCDU2_LSK1R, bool) 1 == 
			(L:MCDU2_Page, number) 14 == &amp;&amp;
			if{
				(A:EXIT OPEN:0, percent) 100 ==
				(A:EXIT OPEN:1, percent) 100 ==	||
				(L:MCDU2_Doors_Valid,bool) 1 == &amp;&amp;
				(L:MCDU2_FP_Load_Pax, number) 1 == &amp;&amp;
				if{
					1 (&gt; L:AB_MCDU2_LD_LOAD, number)
					(L:AB_MCDU2_LS_PAX, number) (L:AB_MCDU2_LS_PAX_KG, number) * (&gt;L:AB_MCDU2_LD_PAX, number)
					0 (&gt; L:MCDU2_LSK1R, bool)
				}
			}			
		<!-- Close Front Right Door -->
			(L:MCDU2_LSK1R, bool) 1 ==
			(L:MCDU2_Page, number) 2 == &amp;&amp;
			if{
				(L:MCDU2_Doors_Valid,bool) 1 == 
				(L:AB_Cabindoor3, number) 5 &gt;=
				(L:MCDU2_Doors_Valid,bool) 0 == &amp;&amp; ||
				if{	
					(L:AB_Cabindoor3_toggle, bool) ! (&gt; L:AB_Cabindoor3_toggle, bool)
					(L:AB_Cabindoor3_toggle, bool) 100 * (&gt; L:AB_Cabindoor3_target, number)
					0 (&gt; L:MCDU2_LSK1R, bool)
				}
			}
		<!-- Wingview Switch on Off -->
			(L:MCDU2_LSK1R, bool) 1 ==
			(L:MCDU2_Page, number) 6 == &amp;&amp; 
			if{
				(L:ViewSys_Off,bool) 0 ==
				if{
					(L:Wingviewbar_On,bool) ! (&gt; L:Wingviewbar_On,bool)
					(L:Wingviewbar_On,bool) (&gt;L:set1_ASC_Wingviewbar_On,number)
					1 (&gt; L:ASC_SET, number)
					5 (&gt; L:ASC_SAVE, number)
					0 (&gt; L:MCDU2_LSK1R, bool)
				}
			}
		<!-- Volume Control Page -->
			(L:MCDU2_LSK1R, bool) 1 == 
			(L:MCDU2_Page, number) 5 == &amp;&amp;
			if{
				16 (&gt; L:MCDU2_Page, number)
				1 (&gt; L:Enable_MCDU2_Scratchpad, number)
				0 (&gt; L:MCDU2_LSK1R, bool)
			}
		<!-- Enter Checklist PF Sound Volume -->
			(L:MCDU2_LSK1R, bool) 1 == 
			(L:MCDU2_Page, number) 16 == &amp;&amp;
			if{
				(L:Scratchpad_percent_valid, bool) 1 ==
				if{
					(L:Scratchpad, number) (&gt;L:ASC_Vol_Checklist_PF, number)
					(L:Scratchpad, number) (&gt;L:set1_ASC_Vol_Checklist_PF,number)
					1 (&gt; L:ASC_SET, number)
					5 (&gt; L:ASC_SAVE, number)						
					1 (&gt;L:Scratchpad_Rst, bool)
				}
				(L:Scratchpad_percent_valid, bool) 0 ==
				if{
					1 (&gt;L:Scratchpad_invalid2, bool)
				}
				0 (&gt; L:MCDU2_LSK1R, bool)
			}			
		<!-- Start Approach CL -->
			(L:MCDU2_LSK1R, bool) 1 ==
			(L:MCDU2_Page, number) 9 == &amp;&amp;
			(L:AB_CL_Auto,bool) 1 == &amp;&amp;
			(L:AB_CL_ApproachAvail,bool) 1 == &amp;&amp;
			if{
			   1 (&gt;L:CL_Approach_Init,bool)
               0 (&gt; L:MCDU2_LSK1R, bool)
			}			
		<!-- Copilot On -->
			(L:MCDU2_LSK1R, bool) 1 ==
			(L:MCDU2_Page, number) 7 == (L:MCDU2_Page, number) 8 == || &amp;&amp;
				if{ 
				    (L:AB_CL_Auto,bool) 1 == 
					if{
						(L:AB_Copilot,bool) ! (&gt; L:AB_Copilot, bool) 
						0 (&gt; L:MCDU2_LSK1R, bool)
					  }
			}
		<!-- Open Checklist A Page -->
			(L:MCDU2_LSK1R, bool) 1 ==
			(L:MCDU2_CL_Valid,bool) 1 == &amp;&amp;
			if{
				(L:MCDU2_Page, number) 0 ==
				(L:MCDU2_mouseclick_bypass, bool) 0 == &amp;&amp;
				if{
					(L:MCDU2_CLPage2, bool) 0 ==
					if{
							8 (&gt; L:MCDU2_Page, number)
					}
					els{ 9 (&gt; L:MCDU2_Page, number) }
					
					1 (&gt; L:MCDU2_mouseclick_bypass, bool)	
				}
				0 (&gt; L:MCDU2_mouseclick_bypass, bool)
			}
		<!-- Open Aircraft Options Page -->
			(L:MCDU2_LSK1R, bool) 1 == 
			if{
					(L:MCDU2_Page, number) 4 == (L:MCDU2_mouseclick_bypass, bool) 0 == &amp;&amp;
					if{
						12 (&gt; L:MCDU2_Page, number)
						1 (&gt; L:MCDU2_mouseclick_bypass, bool)	
					}
			}			
			0 (&gt; L:MCDU2_LSK1R, bool)
<!-- LSK2R -->				
		<!--Set Default Turn Around State -->		
			(L:MCDU2_LSK2R, bool) 1 == 
			(L:MCDU2_Page, number) 1 == &amp;&amp;
			if{
				2 (&gt;L:AB_ACFTState_Default, number)
				2 (&gt;L:set1_AB_ACFTState_Default,number)	
				1 (&gt; L:ASC_SET, number)
				5 (&gt; L:ASC_SAVE, number)
				0 (&gt; L:MCDU2_LSK2R, bool)
			}
		<!-- Start Load Cargo -->		
			(L:MCDU2_LSK2R, bool) 1 == 
			(L:MCDU2_Page, number) 14 == &amp;&amp;
			if{
				(A:EXIT OPEN:2, percent) 100 ==
				(A:EXIT OPEN:3, percent) 100 == &amp;&amp;
				(L:MCDU2_Doors_Valid,bool) 1 == &amp;&amp;
				(L:MCDU2_FP_Load_Cargo, number) 1 == &amp;&amp;
				if{
					(L:AB_MCDU2_LS_CG, number) (&gt;L:AB_MCDU2_LD_CG, number)
					(L:AB_MCDU2_LS_CAR_KG, number) 1000 * (&gt;L:AB_MCDU2_LD_CARGO, number)
					2 (&gt; L:AB_MCDU2_LD_LOAD, number)
					0 (&gt; L:MCDU2_LSK2R, bool)
				}
			}
		<!-- Enter Checklist PnF Sound Volume -->
			(L:MCDU2_LSK2R, bool) 1 == 
			(L:MCDU2_Page, number) 16 == &amp;&amp;
			if{
				(L:Scratchpad_percent_valid, bool) 1 ==
				if{
					(L:Scratchpad, number) (&gt;L:ASC_Vol_Checklist_PnF, number)
					(L:Scratchpad, number) (&gt;L:set1_ASC_Vol_Checklist_PnF,number)
					1 (&gt; L:ASC_SET, number)
					5 (&gt; L:ASC_SAVE, number)						
					1 (&gt;L:Scratchpad_Rst, bool)
				}
				(L:Scratchpad_percent_valid, bool) 0 ==
				if{
					1 (&gt;L:Scratchpad_invalid2, bool)
				}
				0 (&gt; L:MCDU2_LSK2R, bool)
			}			
		<!-- Close Aft Right Door -->
			(L:MCDU2_LSK2R, bool) 1 == (L:MCDU2_Page, number) 2 == &amp;&amp;
			if{
				(L:MCDU2_Doors_Valid,bool) 1 == 
				(L:AB_Cabindoor4, number) 5 &gt;= (L:MCDU2_Doors_Valid,bool) 0 == &amp;&amp; ||
				if{	
					(L:AB_Cabindoor4_toggle, bool) ! (&gt; L:AB_Cabindoor4_toggle, bool)
					(L:AB_Cabindoor4_toggle, bool) 100 * (&gt; L:AB_Cabindoor4_target, number)
					0 (&gt; L:MCDU2_LSK2R, bool)
				}
			}
		<!-- Shared Fltdeck -->
			(L:MCDU2_LSK2R, bool) 1 == (L:MCDU2_Page, number) 0 == &amp;&amp;
			if{
				20 (&gt; L:MCDU2_Page, number)
				0 (&gt; L:MCDU2_LSK2R, bool)
			}
			0 (&gt; L:MCDU2_LSK2R, bool)
<!-- LSK3R -->	
		<!--Set Default Taxi State -->		
			(L:MCDU2_LSK3R, bool) 1 == 
			(L:MCDU2_Page, number) 1 == &amp;&amp;
			if{
				3 (&gt;L:AB_ACFTState_Default, number)
				3 (&gt;L:set1_AB_ACFTState_Default,number)			
				1 (&gt; L:ASC_SET, number)
				5 (&gt; L:ASC_SAVE, number)				
				0 (&gt; L:MCDU2_LSK3R, bool)
			}
		<!-- Start Load Fuel -->		
			(L:MCDU2_LSK3R, bool) 1 == 
			(L:MCDU2_Page, number) 14 == &amp;&amp;
			if{
				(L:MCDU2_Doors_Valid,bool) 1 ==
				if{
						(L:AB_MCDU2_LS_FUEL_KG, number) 1000 * (&gt; L:AB_MCDU2_LD_FUEL, number)
						3 (&gt; L:AB_MCDU2_LD_LOAD, number)
						0 (&gt; L:MCDU2_LSK3R, bool)
				}
			}
		<!-- Enter ATC Sound Volume -->
			(L:MCDU2_LSK3R, bool) 1 == 
			(L:MCDU2_Page, number) 16 == &amp;&amp;
			if{
				(L:Scratchpad_percent_valid, bool) 1 ==
				if{
					(L:Scratchpad, number) (&gt;L:ASC_Vol_ATC, number)
					(L:Scratchpad, number) (&gt;L:set1_ASC_Vol_ATC,number)
					1 (&gt; L:ASC_SET, number)
					5 (&gt; L:ASC_SAVE, number)					
					1 (&gt;L:Scratchpad_Rst, bool)
				}
				(L:Scratchpad_percent_valid, bool) 0 ==
				if{
					1 (&gt;L:Scratchpad_invalid2, bool)
				}
				0 (&gt; L:MCDU2_LSK3R, bool)
			}			
		<!--Set Pushback Right -->			
			(L:MCDU2_LSK3R, bool) 1 ==
			(L:MCDU2_Page, number) 13 == &amp;&amp;
			(L:PROC_Push_Init, number) 1 == &amp;&amp;
			if{
				(L:AB_Pushback_Angle,number) 90 &lt;
				if{
					(L:AB_Pushback_Angle,number) 5 + (&gt;L:AB_Pushback_Angle,number)
					0 (&gt; L:MCDU2_LSK3R, bool)
				}
			}
		<!-- Close Front Cargo Door -->
			(L:MCDU2_LSK3R, bool) 1 ==
			(L:MCDU2_Page, number) 2 == &amp;&amp;
			if{
				(L:MCDU2_Doors_Valid,bool) 1 == 
				(A:EXIT OPEN:2, percent) 5 &gt;=
				(L:MCDU2_Doors_Valid,bool) 0 == &amp;&amp; ||
				(L:MCDU2_FP_Load_Cargo, number) 2 != &amp;&amp;
				if{				
					3 (&gt; L:MCDU2_TGLEXIT, number)
					0 (&gt; L:MCDU2_LSK3R, bool)
				}
			}
			0 (&gt; L:MCDU2_LSK3R, bool)
<!-- LSK4R -->
		<!--Set Default Take Off State -->		
			(L:MCDU2_LSK4R, bool) 1 == 
			(L:MCDU2_Page, number) 1 == &amp;&amp;
			if{
				4 (&gt;L:AB_ACFTState_Default, number)
				4 (&gt;L:set1_AB_ACFTState_Default,number)				
				1 (&gt; L:ASC_SET, number)
				5 (&gt; L:ASC_SAVE, number)		
				0 (&gt; L:MCDU2_LSK4R, bool)
			}
		<!-- Start Instant Load -->		
			(L:MCDU2_LSK4R, bool) 1 == 
			(L:MCDU2_Page, number) 14 == &amp;&amp;
			if{
				(L:MCDU2_GndServ_Valid,bool) 1 ==
				if{
					(L:AB_MCDU2_LS_Pax_Ent, bool) 1 ==
					(L:AB_MCDU2_LS_RES, number) 1 == ||
					if{
						(L:AB_MCDU2_LS_PAX, number) (L:AB_MCDU2_LS_PAX_KG, number) * (&gt;L:AB_MCDU2_LD_PAX, number)
						(L:AB_MCDU2_LS_CG, number) (&gt;L:AB_MCDU2_LD_CG, number)
					}
					(L:AB_MCDU2_LS_Cargo_Ent, bool) 1 ==
					(L:AB_MCDU2_LS_RES, number) 1 == ||
					if{
						(L:AB_MCDU2_LS_CAR_KG, number) 1000 * (&gt;L:AB_MCDU2_LD_CARGO, number)
					}
					(L:AB_MCDU2_LS_Fuel_Ent, bool) 1 ==
					(L:AB_MCDU2_LS_RES, number) 1 == ||
					if{
						(L:AB_MCDU2_LS_FUEL_KG, number) 1000 * (&gt; L:AB_MCDU2_LD_FUEL, number)
					}
					4 (&gt; L:AB_MCDU2_LD_LOAD, number)
					0 (&gt; L:MCDU2_LSK4R, bool)
				}
			}
		<!-- Enter Cabin Crew Sound Volume -->
			(L:MCDU2_LSK4R, bool) 1 == 
			(L:MCDU2_Page, number) 16 == &amp;&amp;
			if{
				(L:Scratchpad_percent_valid, bool) 1 ==
				if{
					(L:Scratchpad, number) (&gt;L:ASC_Vol_CabinCrew, number)
					(L:Scratchpad, number) (&gt;L:set1_ASC_Vol_CabinCrew,number)
					1 (&gt; L:ASC_SET, number)
					5 (&gt; L:ASC_SAVE, number)					
					1 (&gt;L:Scratchpad_Rst, bool)
				}
				(L:Scratchpad_percent_valid, bool) 0 ==
				if{
					1 (&gt;L:Scratchpad_invalid2, bool)
				}
				0 (&gt; L:MCDU2_LSK4R, bool)
			}			
		<!-- Start Taxiing checklist -->
			(L:MCDU2_LSK4R, bool) 1 ==
			(L:MCDU2_Page, number) 8 == &amp;&amp;
			if{
				(L:AB_CL_Auto,bool) 1 ==
				(L:AB_CL_TaxiingAvail,bool) 1 == &amp;&amp;
				if{
					1 (&gt;L:AB_CL_Taxiing_Init,bool)
			        0 (&gt; L:MCDU2_LSK4R, bool)
				}
			}			
		<!-- Close Aft Cargo Door -->
			(L:MCDU2_LSK4R, bool) 1 ==
			(L:MCDU2_Page, number) 2 == &amp;&amp;
			if{
				(L:MCDU2_Doors_Valid,bool) 1 ==
				(A:EXIT OPEN:3, percent) 5 &gt;=
				(L:MCDU2_Doors_Valid,bool) 0 == &amp;&amp; ||
				(L:MCDU2_FP_Load_Cargo, number) 2 != &amp;&amp;
				if{		
					4 (&gt; L:MCDU2_TGLEXIT, number)
					0 (&gt; L:MCDU2_LSK4R, bool)
				}
			}
		<!-- Set Pushback Left -->
			(L:MCDU2_LSK4R, bool) 1 ==
			(L:MCDU2_Page, number) 13 == &amp;&amp;
			(L:PROC_Push_Init, number) 1 == &amp;&amp;
			if{
				(L:AB_Pushback_Angle,number) -90 &gt;
				if{			
					(L:AB_Pushback_Angle,number) 5 - (&gt;L:AB_Pushback_Angle,number)
					0 (&gt; L:MCDU2_LSK4R, bool)
				}
			}
		<!-- App Speed Limiter -->
			(L:MCDU2_LSK4R, bool) 1 ==
			(L:MCDU2_Page, number) 7 == &amp;&amp;
			if{
			   (L:CP_App_Speedbrake,bool) ! (&gt; L:CP_App_Speedbrake,bool)
			   (L:CP_App_Speedbrake,bool) (&gt;L:set1_ASC_CP_App_Speedbrake,number)
			   1 (&gt; L:ASC_SET, number)
			   5 (&gt; L:ASC_SAVE, number)
               0 (&gt; L:MCDU2_LSK4R, bool)
			}
			0 (&gt; L:MCDU2_LSK4R, bool)
<!-- LSK5R -->
		<!-- Clear Default State -->		
			(L:MCDU2_LSK5R, bool) 1 == 
			(L:MCDU2_Page, number) 1 == &amp;&amp;
			if{
				0 (&gt;L:AB_ACFTState_Default, number)
				0 (&gt;L:set1_AB_ACFTState_Default,number)				
				1 (&gt; L:ASC_SET, number)
				5 (&gt; L:ASC_SAVE, number)				
				0 (&gt; L:MCDU2_LSK5R, bool)
			}
		<!-- Start before TO checklist -->
			(L:MCDU2_LSK5R, bool) 1 ==
			(L:MCDU2_Page, number) 8 == &amp;&amp;
			if{
				(L:AB_CL_Auto,bool) 1 ==
				(L:AB_CL_beforeTO_Avail,bool) 1 == &amp;&amp;
				if{
					1 (&gt;L:AB_CL_beforeTO_Init,bool)
			        0 (&gt; L:MCDU2_LSK5R, bool)
				}
			}
		<!-- Open Fuel Load Options Page -->
			(L:MCDU2_LSK5R, bool) 1 == 
			(L:MCDU2_Page, number) 14 == &amp;&amp;
			if{
				15 (&gt; L:MCDU2_Page, number)
				0 (&gt; L:MCDU2_LSK5R, bool)
			}			
		<!-- 250 Knots Limiter -->
			(L:MCDU2_LSK5R, bool) 1 ==
			(L:MCDU2_Page, number) 7 == &amp;&amp;
			if{
			   (L:AB_250Kt_Limiter,bool) ! (&gt; L:AB_250Kt_Limiter,bool)
			   (L:AB_250Kt_Limiter,bool) (&gt;L:set1_ASC_AB_250Kt_Limiter,number)
			   1 (&gt; L:ASC_SET, number)
			   5 (&gt; L:ASC_SAVE, number)
               0 (&gt; L:MCDU2_LSK5R, bool)
			}
			0 (&gt; L:MCDU2_LSK5R, bool)
<!-- LSK6R -->			
			(L:MCDU2_LSK6R, bool) 1 == 
			if{
				(L:MCDU2_Page, number) 1 == (L:MCDU2_mouseclick_bypass, bool) 0 == &amp;&amp;
				if{
						0 (&gt; L:MCDU2_Page, number)
						1 (&gt; L:MCDU2_mouseclick_bypass, bool)
						0 (&gt; L:MCDU2_LSK6R, bool)
				}
				
				(L:MCDU2_Page, number) 2 == (L:MCDU2_mouseclick_bypass, bool) 0 == &amp;&amp;
				if{
						0 (&gt; L:MCDU2_Page, number)
						1 (&gt; L:MCDU2_mouseclick_bypass, bool)
						0 (&gt; L:MCDU2_LSK6R, bool)
				}

				(L:MCDU2_Page, number) 3 == (L:MCDU2_mouseclick_bypass, bool) 0 == &amp;&amp;
				if{
						0 (&gt; L:MCDU2_Page, number)
						1 (&gt; L:MCDU2_mouseclick_bypass, bool)
						0 (&gt; L:MCDU2_LSK6R, bool)
				}				
				
			   (L:MCDU2_Page, number) 4 == (L:MCDU2_mouseclick_bypass, bool) 0 == &amp;&amp;
				if{
						0 (&gt; L:MCDU2_Page, number)
						1 (&gt; L:MCDU2_mouseclick_bypass, bool)
						0 (&gt; L:MCDU2_LSK6R, bool)
				}
				
				(L:MCDU2_Page, number) 5 == (L:MCDU2_mouseclick_bypass, bool) 0 == &amp;&amp;
				if{
						4 (&gt; L:MCDU2_Page, number)
						1 (&gt; L:MCDU2_mouseclick_bypass, bool)
						0 (&gt; L:MCDU2_LSK6R, bool)
				}
				
				(L:MCDU2_Page, number) 6 == (L:MCDU2_mouseclick_bypass, bool) 0 == &amp;&amp;
				if{
						4 (&gt; L:MCDU2_Page, number)
						1 (&gt; L:MCDU2_mouseclick_bypass, bool)
						0 (&gt; L:MCDU2_LSK6R, bool)
				}
				
				(L:MCDU2_Page, number) 7 == (L:MCDU2_mouseclick_bypass, bool) 0 == &amp;&amp;
				if{
						4 (&gt; L:MCDU2_Page, number)
						1 (&gt; L:MCDU2_mouseclick_bypass, bool)
						0 (&gt; L:MCDU2_LSK6R, bool)
				}
				
				(L:MCDU2_Page, number) 8 == (L:MCDU2_mouseclick_bypass, bool) 0 == &amp;&amp;
				if{
						0 (&gt; L:MCDU2_Page, number)
						1 (&gt; L:MCDU2_mouseclick_bypass, bool)
						0 (&gt; L:MCDU2_LSK6R, bool)
				}
				
				(L:MCDU2_Page, number) 9 == (L:MCDU2_mouseclick_bypass, bool) 0 == &amp;&amp;
				if{
						0 (&gt; L:MCDU2_Page, number)
						1 (&gt; L:MCDU2_mouseclick_bypass, bool)
						0 (&gt; L:MCDU2_LSK6R, bool)
				}
				
				(L:MCDU2_Page, number) 10 == (L:MCDU2_mouseclick_bypass, bool) 0 == &amp;&amp;
				if{
						4 (&gt; L:MCDU2_Page, number)
						1 (&gt; L:MCDU2_mouseclick_bypass, bool)
						0 (&gt; L:MCDU2_LSK6R, bool)
				}

				(L:MCDU2_Page, number) 11 == (L:MCDU2_mouseclick_bypass, bool) 0 == &amp;&amp;
				if{
						4 (&gt; L:MCDU2_Page, number)
						1 (&gt; L:MCDU2_mouseclick_bypass, bool)
						0 (&gt; L:MCDU2_LSK6R, bool)
				}
				(L:MCDU2_Page, number) 12 == (L:MCDU2_mouseclick_bypass, bool) 0 == &amp;&amp;
				if{
						4 (&gt; L:MCDU2_Page, number)
						1 (&gt; L:MCDU2_mouseclick_bypass, bool)
						0 (&gt; L:MCDU2_LSK6R, bool)
				}
				(L:MCDU2_Page, number) 13 == (L:MCDU2_mouseclick_bypass, bool) 0 == &amp;&amp;
				if{
						1 (&gt;L:AB_PROC_StartPush,bool)
						2 (&gt; L:PROC_Push_Init, number)
						8 (&gt;L:MCDU2_Page, number)
						1 (&gt;L:MCDU2_mouseclick_bypass, bool)
						0 (&gt;L:MCDU2_LSK6R, bool)
				}
				(L:MCDU2_Page, number) 14 == (L:MCDU2_mouseclick_bypass, bool) 0 == &amp;&amp;
				if{
						0 (&gt; L:MCDU2_Page, number)
						0 (&gt; L:Enable_MCDU2_Scratchpad, number)
						1 (&gt; L:MCDU2_mouseclick_bypass, bool)
						0 (&gt; L:MCDU2_LSK6R, bool)
				}
				(L:MCDU2_Page, number) 15 == (L:MCDU2_mouseclick_bypass, bool) 0 == &amp;&amp;
				if{
						14 (&gt; L:MCDU2_Page, number)
						1 (&gt; L:MCDU2_mouseclick_bypass, bool)
						0 (&gt; L:MCDU2_LSK6R, bool)
				}
				(L:MCDU2_Page, number) 16 == (L:MCDU2_mouseclick_bypass, bool) 0 == &amp;&amp;
				if{
						5 (&gt; L:MCDU2_Page, number)
						0 (&gt; L:Enable_MCDU2_Scratchpad, number)
						1 (&gt; L:MCDU2_mouseclick_bypass, bool)
						0 (&gt; L:MCDU2_LSK6R, bool)
				}	
				(L:MCDU2_Page, number) 20 == (L:MCDU2_mouseclick_bypass, bool) 0 == &amp;&amp;
				if{
						0 (&gt; L:MCDU2_Page, number)
						0 (&gt; L:Enable_MCDU2_Scratchpad, number)
						1 (&gt; L:MCDU2_mouseclick_bypass, bool)
						0 (&gt; L:MCDU2_LSK6R, bool)
				}				
			}
			0 (&gt; L:MCDU2_LSK6R, bool) 0 (&gt; L:MCDU2_mouseclick_bypass, bool)

<!-- Arrow Left -->				
			(L:MCDU2_arrowleft, bool) 1 == 
			(L:MCDU2_Page, number) 9 == &amp;&amp;
			if{
				8 (&gt; L:MCDU2_Page, number)
				0 (&gt; L:MCDU2_CLPage2, bool)
				0 (&gt; L:MCDU2_arrowleft, bool)
			}
		    0 (&gt; L:MCDU2_arrowleft, bool)
<!-- Arrow Right -->			
			(L:MCDU2_arrowright, bool) 1 == 
			(L:MCDU2_Page, number) 8 == &amp;&amp;
			if{
				9 (&gt; L:MCDU2_Page, number)
				1 (&gt; L:MCDU2_CLPage2, bool)
				0 (&gt; L:MCDU2_arrowright, bool)
			}
		    0 (&gt; L:MCDU2_arrowright, bool)

<!-- DIM -->
			(L:MCDU2_DIM,bool) 1 ==
			if{ 
				(L:MCDU2_Lum, number) 15 &lt;
				if{
					(L:MCDU2_Lum, number) ++ (&gt;L:MCDU2_Lum, number)
					0 (&gt; L:MCDU2_DIM, bool)
				}
			}
			0 (&gt; L:MCDU2_DIM, bool)
<!-- BRT -->
			(L:MCDU2_BRT,bool) 1 ==
			if{ 
				(L:MCDU2_Lum, number) 0 &gt;
				if{
					(L:MCDU2_Lum, number) -- (&gt;L:MCDU2_Lum, number)
					0 (&gt; L:MCDU2_BRT, bool)
				}
			}
			0 (&gt; L:MCDU2_BRT, bool)

<!-- Scratchpad -->			
	(L:MCDU2_1, bool) 1 ==
	if{
		(L:MCDU2_mouseclick_bypass, bool) 0 ==
		if{
				1 (&gt;L:Scratchpad_Num, number)
				(L:Scratchpad_pt, number) 1 + (&gt;L:Scratchpad_pt, number)
				1 (&gt;L:MCDU2_mouseclick_bypass, bool)
				0 (&gt; L:MCDU2_1, bool)
		}
	}
	(L:MCDU2_2, bool) 1 ==
	if{
		(L:MCDU2_mouseclick_bypass, bool) 0 ==
		if{
				2 (&gt;L:Scratchpad_Num, number)
				(L:Scratchpad_pt, number) 1 + (&gt;L:Scratchpad_pt, number)
				1 (&gt;L:MCDU2_mouseclick_bypass, bool)
				0 (&gt; L:MCDU2_2, bool)
		}
	}
	(L:MCDU2_3, bool) 1 ==
	if{
		(L:MCDU2_mouseclick_bypass, bool) 0 ==
		if{
				3 (&gt;L:Scratchpad_Num, number)
				(L:Scratchpad_pt, number) 1 + (&gt;L:Scratchpad_pt, number)
				1 (&gt;L:MCDU2_mouseclick_bypass, bool)
				0 (&gt; L:MCDU2_3, bool)
		}
	}
	(L:MCDU2_4, bool) 1 ==
	if{
		(L:MCDU2_mouseclick_bypass, bool) 0 ==
		if{
				4 (&gt;L:Scratchpad_Num, number)
				(L:Scratchpad_pt, number) 1 + (&gt;L:Scratchpad_pt, number)
				1 (&gt;L:MCDU2_mouseclick_bypass, bool)
				0 (&gt; L:MCDU2_4, bool)
		}
	}
	(L:MCDU2_5, bool) 1 ==
	if{
		(L:MCDU2_mouseclick_bypass, bool) 0 ==
		if{
				5 (&gt;L:Scratchpad_Num, number)
				(L:Scratchpad_pt, number) 1 + (&gt;L:Scratchpad_pt, number)
				1 (&gt;L:MCDU2_mouseclick_bypass, bool)
				0 (&gt; L:MCDU2_5, bool)
		}
	}
	(L:MCDU2_6, bool) 1 ==
	if{
		(L:MCDU2_mouseclick_bypass, bool) 0 ==
		if{
				6 (&gt;L:Scratchpad_Num, number)
				(L:Scratchpad_pt, number) 1 + (&gt;L:Scratchpad_pt, number)
				1 (&gt;L:MCDU2_mouseclick_bypass, bool)
				0 (&gt; L:MCDU2_6, bool)
		}
	}
	(L:MCDU2_7, bool) 1 ==
	if{
		(L:MCDU2_mouseclick_bypass, bool) 0 ==
		if{
				7 (&gt;L:Scratchpad_Num, number)
				(L:Scratchpad_pt, number) 1 + (&gt;L:Scratchpad_pt, number)
				1 (&gt;L:MCDU2_mouseclick_bypass, bool)
				0 (&gt; L:MCDU2_7, bool)
		}
	}
	(L:MCDU2_8, bool) 1 ==
	if{
		(L:MCDU2_mouseclick_bypass, bool) 0 ==
		if{
				8 (&gt;L:Scratchpad_Num, number)
				(L:Scratchpad_pt, number) 1 + (&gt;L:Scratchpad_pt, number)
				1 (&gt;L:MCDU2_mouseclick_bypass, bool)
				0 (&gt; L:MCDU2_8, bool)
		}
	}
	(L:MCDU2_9, bool) 1 ==
	if{
		(L:MCDU2_mouseclick_bypass, bool) 0 ==
		if{
				9 (&gt;L:Scratchpad_Num, number)
				(L:Scratchpad_pt, number) 1 + (&gt;L:Scratchpad_pt, number)
				1 (&gt;L:MCDU2_mouseclick_bypass, bool)
				0 (&gt; L:MCDU2_9, bool)
		}
	}
	(L:MCDU2_0, bool) 1 ==
	if{
		(L:MCDU2_mouseclick_bypass, bool) 0 ==
		if{
				0 (&gt;L:Scratchpad_Num, number)
				(L:Scratchpad_pt, number) 1 + (&gt;L:Scratchpad_pt, number)
				1 (&gt;L:MCDU2_mouseclick_bypass, bool)
				0 (&gt; L:MCDU2_0, bool)
		}
	}
	(L:MCDU2_CLR, bool) 1 ==
	if{
		(L:MCDU2_mouseclick_bypass, bool) 0 ==
		if{
				1 (&gt;L:Scratchpad_Clr, bool)
				1 (&gt;L:MCDU2_mouseclick_bypass, bool)
				0 (&gt; L:MCDU2_CLR, bool)
		}
	}
	(L:MCDU2_ST, bool) 1 ==
	if{
		(L:MCDU2_mouseclick_bypass, bool) 0 ==
		if{
			1 (&gt; L:Scratchpad_ST, bool)
			0 (&gt; L:MCDU2_ST, bool)
		}
	}	
}
	(L:MP_STS, number) 0 ==
	(L:MP_SYNCDSP, bool) 1 == &amp;&amp;
	if{	
		0 (&gt; L:MP_SYNCDSP, bool)
	}		
	(L:MP_STS, number) 0 ==
	(L:MP_SYNCWX, bool) 1 == &amp;&amp;
	(L:MP_Syncwx_Bypass, bool) 1 == &amp;&amp;
	if{
		0 (&gt; L:MP_SYNCWX, bool)
	}
			
</Script>
</Update>
</SimGauge.Gauge>
</SimBase.Document>