#GreetSub @RTOn

Set flag 24-7_work_on_friday?
[yes] @NullResponse @TempFlag(24-7_work_on_friday)
[no] @NullResponse
@DifferentAnswer @NullResponse
Set flag 24-7_work_on_saturday?
[yes] @NullResponse @TempFlag(24-7_work_on_saturday)
[no] @NullResponse
@DifferentAnswer @NullResponse

type 0:01 @InputVar[24-7_come_home]
type 23:59 @InputVar[24-7_go_to_sleep_not_working_day]
type 23:59 @InputVar[24-7_go_to_sleep_working_day]

@NullResponse @RapidCodeOn
@NullResponse @Flag(24-7_work_on_friday,24-7_work_on_saturday) @Variable[#DateDifference(24-7_come_home,minutes)]>=[0]And[#DateDifference(24-7_go_to_sleep_working_day,minutes)]<=[0] @TempFlag(L5) @SetVar[24-7_time_before_going_to_sleep]=[#DateDifference(24-7_go_to_sleep_working_day,minutes)] @TempFlag(24-7_checking_available_time_before_sleep)
@NullResponse @Flag(24-7_work_on_friday) @NotFlag(24-7_work_on_saturday) @Variable[#DateDifference(24-7_come_home,minutes)]>=[0]And[#DateDifference(24-7_go_to_sleep_not_working_day,minutes)]<=[0] @TempFlag(L6) @SetVar[24-7_time_before_going_to_sleep]=[#DateDifference(24-7_go_to_sleep_not_working_day,minutes)] @TempFlag(24-7_checking_available_time_before_sleep)
@NullResponse @NotFlag(24-7_work_on_friday) @Flag(24-7_work_on_saturday) @Variable[#DateDifference(24-7_go_to_sleep_working_day,minutes)]<=[0] @TempFlag(L7) @SetVar[24-7_time_before_going_to_sleep]=[#DateDifference(24-7_go_to_sleep_working_day,minutes)] @TempFlag(24-7_checking_available_time_before_sleep)
@NullResponse @NotFlag(24-7_work_on_friday,24-7_work_on_saturday) @Variable[#DateDifference(24-7_go_to_sleep_not_working_day,minutes)]<=[0] @TempFlag(L8) @SetVar[24-7_time_before_going_to_sleep]=[#DateDifference(24-7_go_to_sleep_not_working_day,minutes)] @TempFlag(24-7_checking_available_time_before_sleep)
@NullResponse @RapidCodeOff

@Flag(24-7_checking_available_time_before_sleep) flag <b>24-7_checking_available_time_before_sleep</b> has been set
@Flag(L5) flag <b>L5</b> has been set
@Flag(L6) flag <b>L6</b> has been set
@Flag(L7) flag <b>L7</b> has been set
@Flag(L8) flag <b>L8</b> has been set

24-7_time_before_going_to_sleep: @ShowVar[24-7_time_before_going_to_sleep]
deleting variables @DeleteVar[24-7_time_before_going_to_sleep,24-7_come_home,24-7_go_to_sleep_not_working_day,24-7_go_to_sleep_working_day]

@NullResponse @UnlockImages

Ending script... @EndTease
@End