there are many ways of doing this eg using pulses and AND blocks and comparisons on the current status (M) of the lighting controller.
alternatively you can use a status block which is effectively lots of IF then combinations
in my example
the I1 of the status is the scheduler being on
the I2 of the status is the current mood output of the lights
the status text is the number of the mood you want to turn on, in this case 1 and 0 (off)
the status value is run through a change detector (combination of memory flag with its delay set to 1 and a comparator - you can use any number its just to detect changes
any change in status value pushes the new mood via the analog memory to the mood input of the lighting controller, this way you cant get any mixing of moods
if the mood has been changed eg the room is in use and another light mood chosen, the lights will not be turned on or off