Select(Button1)

UpdateContext({MyCounter: MyCounter + 1});If ( MyCounter > 9, UpdateContext({MyCounter: 0}), false)

// Segment 1If( Or( MyCounter = 2, MyCounter = 3, MyCounter = 5, MyCounter = 6, MyCounter = 7, MyCounter = 8, MyCounter = 9, MyCounter = 0 ), UpdateContext({FillColorS1: SegmentDayMode.Fill}), If( ToggleNightMode.Value, UpdateContext({FillColorS1: NightmodeBackgr.Fill}), UpdateContext({FillColorS1: SegmentUnselected.Fill}) ));// Segment 2If( Or( MyCounter = 1, MyCounter = 2, MyCounter = 3, MyCounter = 4, MyCounter = 7, MyCounter = 8, MyCounter = 9, MyCounter = 0 ), UpdateContext({FillColorS2: SegmentDayMode.Fill}), If( ToggleNightMode.Value, UpdateContext({FillColorS2: NightmodeBackgr.Fill}), UpdateContext({FillColorS2: SegmentUnselected.Fill}) ));// Segment 3If( Or( MyCounter = 1, MyCounter = 3, MyCounter = 4, MyCounter = 5, MyCounter = 6, MyCounter = 7, MyCounter = 8, MyCounter = 9, MyCounter = 0 ), UpdateContext({FillColorS3: SegmentDayMode.Fill}), If( ToggleNightMode.Value, UpdateContext({FillColorS3: NightmodeBackgr.Fill}), UpdateContext({FillColorS3: SegmentUnselected.Fill}) ));// Segment 4If( Or( MyCounter = 2, MyCounter = 3, MyCounter = 5, MyCounter = 6, MyCounter = 8, MyCounter = 9, MyCounter = 0 ), UpdateContext({FillColorS4: SegmentDayMode.Fill}), If( ToggleNightMode.Value, UpdateContext({FillColorS4: NightmodeBackgr.Fill}), UpdateContext({FillColorS4: SegmentUnselected.Fill}) ));// Segment 5If( Or( MyCounter = 2, MyCounter = 6, MyCounter = 8, MyCounter = 0 ), UpdateContext({FillColorS5: SegmentDayMode.Fill}), If( ToggleNightMode.Value, UpdateContext({FillColorS5: NightmodeBackgr.Fill}), UpdateContext({FillColorS5: SegmentUnselected.Fill}) ));// Segment 6If( Or( MyCounter = 4, MyCounter = 5, MyCounter = 6, MyCounter = 8, MyCounter = 9, MyCounter = 0 ), UpdateContext({FillColorS6: SegmentDayMode.Fill}), If( ToggleNightMode.Value, UpdateContext({FillColorS6: NightmodeBackgr.Fill}), UpdateContext({FillColorS6: SegmentUnselected.Fill}) ));// Segment 7If( Or( MyCounter = 2, MyCounter = 3, MyCounter = 4, MyCounter = 5, MyCounter = 6, MyCounter = 8, MyCounter = 9 ), UpdateContext({FillColorS7: SegmentDayMode.Fill}), If( ToggleNightMode.Value, UpdateContext({FillColorS7: NightmodeBackgr.Fill}), UpdateContext({FillColorS7: SegmentUnselected.Fill}) ))

Select(Button2)

If( MyCounter = 0, UpdateContext({NyCounter: NyCounter + 1}), false);If( NyCounter > 5, UpdateContext({NyCounter: 0}), false)

// Segment 1If( Or( NyCounter = 2, NyCounter = 3, NyCounter = 5, NyCounter = 6, NyCounter = 7, NyCounter = 8, NyCounter = 9, NyCounter = 0 ), UpdateContext({FillColorT1: SegmentDayMode.Fill}), If( ToggleNightMode.Value, UpdateContext({FillColorT1: NightmodeBackgr.Fill}), UpdateContext({FillColorT1: SegmentUnselected.Fill}) ));// Segment 2If( Or( NyCounter = 1, NyCounter = 2, NyCounter = 3, NyCounter = 4, NyCounter = 7, NyCounter = 8, NyCounter = 9, NyCounter = 0 ), UpdateContext({FillColorT2: SegmentDayMode.Fill}), If( ToggleNightMode.Value, UpdateContext({FillColorT2: NightmodeBackgr.Fill}), UpdateContext({FillColorT2: SegmentUnselected.Fill}) ));// Segment 3If( Or( NyCounter = 1, NyCounter = 3, NyCounter = 4, NyCounter = 5, NyCounter = 6, NyCounter = 7, NyCounter = 8, NyCounter = 9, NyCounter = 0 ), UpdateContext({FillColorT3: SegmentDayMode.Fill}), If( ToggleNightMode.Value, UpdateContext({FillColorT3: NightmodeBackgr.Fill}), UpdateContext({FillColorT3: SegmentUnselected.Fill}) ));// Segment 4If( Or( NyCounter = 2, NyCounter = 3, NyCounter = 5, NyCounter = 6, NyCounter = 8, NyCounter = 9, NyCounter = 0 ), UpdateContext({FillColorT4: SegmentDayMode.Fill}), If( ToggleNightMode.Value, UpdateContext({FillColorT4: NightmodeBackgr.Fill}), UpdateContext({FillColorT4: SegmentUnselected.Fill}) ));// Segment 5If( Or( NyCounter = 2, NyCounter = 6, NyCounter = 8, NyCounter = 0 ), UpdateContext({FillColorT5: SegmentDayMode.Fill}), If( ToggleNightMode.Value, UpdateContext({FillColorT5: NightmodeBackgr.Fill}), UpdateContext({FillColorT5: SegmentUnselected.Fill}) ));// Segment 6If( Or( NyCounter = 4, NyCounter = 5, NyCounter = 6, NyCounter = 8, NyCounter = 9, NyCounter = 0 ), UpdateContext({FillColorT6: SegmentDayMode.Fill}), If( ToggleNightMode.Value, UpdateContext({FillColorT6: NightmodeBackgr.Fill}), UpdateContext({FillColorT6: SegmentUnselected.Fill}) ));// Segment 7If( Or( NyCounter = 2, NyCounter = 3, NyCounter = 4, NyCounter = 5, NyCounter = 6, NyCounter = 8, NyCounter = 9 ), UpdateContext({FillColorT7: SegmentDayMode.Fill}), If( ToggleNightMode.Value, UpdateContext({FillColorT7: NightmodeBackgr.Fill}), UpdateContext({FillColorT7: SegmentUnselected.Fill}) ))

Select(Button3)

If( NyCounter = 0 && MyCounter = 0, UpdateContext({OyCounter: OyCounter + 1}), false);If( OyCounter > 9, UpdateContext({OyCounter: 0}), false)

// Segment 1If( Or( OyCounter= 2, OyCounter= 3, OyCounter= 5, OyCounter= 6, OyCounter= 7, OyCounter= 8, OyCounter= 9, OyCounter= 0 ), UpdateContext({FillColorM1: SegmentDayMode.Fill}), If(ToggleNightMode.Value, UpdateContext({FillColorM1: NightmodeBackgr.Fill}), UpdateContext({FillColorM1: SegmentUnselected.Fill})));// Segment 2If( Or( OyCounter= 1, OyCounter= 2, OyCounter= 3, OyCounter= 4, OyCounter= 7, OyCounter= 8, OyCounter= 9, OyCounter= 0 ), UpdateContext({FillColorM2: SegmentDayMode.Fill}), If(ToggleNightMode.Value, UpdateContext({FillColorM2: NightmodeBackgr.Fill}), UpdateContext({FillColorM2: SegmentUnselected.Fill})));// Segment 3If( Or( OyCounter= 1, OyCounter= 3, OyCounter= 4, OyCounter= 5, OyCounter= 6, OyCounter= 7, OyCounter= 8, OyCounter= 9, OyCounter= 0 ), UpdateContext({FillColorM3: SegmentDayMode.Fill}), If(ToggleNightMode.Value, UpdateContext({FillColorM3: NightmodeBackgr.Fill}), UpdateContext({FillColorM3: SegmentUnselected.Fill})));// Segment 4If( Or( OyCounter= 2, OyCounter= 3, OyCounter= 5, OyCounter= 6, OyCounter= 8, OyCounter= 9, OyCounter= 0 ), UpdateContext({FillColorM4: SegmentDayMode.Fill}), If(ToggleNightMode.Value, UpdateContext({FillColorM4: NightmodeBackgr.Fill}), UpdateContext({FillColorM4: SegmentUnselected.Fill})));// Segment 5If( Or( OyCounter= 2, OyCounter= 6, OyCounter= 8, OyCounter= 0 ), UpdateContext({FillColorM5: SegmentDayMode.Fill}), If(ToggleNightMode.Value, UpdateContext({FillColorM5: NightmodeBackgr.Fill}), UpdateContext({FillColorM5: SegmentUnselected.Fill})));// Segment 6If( Or( OyCounter= 4, OyCounter= 5, OyCounter= 6, OyCounter= 8, OyCounter= 9, OyCounter= 0 ), UpdateContext({FillColorM6: SegmentDayMode.Fill}), If(ToggleNightMode.Value, UpdateContext({FillColorM6: NightmodeBackgr.Fill}), UpdateContext({FillColorM6: SegmentUnselected.Fill})));// Segment 7If( Or( OyCounter= 2, OyCounter= 3, OyCounter= 4, OyCounter= 5, OyCounter= 6, OyCounter= 8, OyCounter= 9 ), UpdateContext({FillColorM7: SegmentDayMode.Fill}), If(ToggleNightMode.Value, UpdateContext({FillColorM7: NightmodeBackgr.Fill}), UpdateContext({FillColorM7: SegmentUnselected.Fill})))