Below is an example of how to capture the schedule start time dynamicly to then be able to use for other logic if needed. The reason this would be needed is because the schedule nextTime changes as the time is reached. For example, if a schedule has an event from 7 am to 4 pm and nextTime is 7 am. Once 7 am comes around, the nextTime changes to 4 pm, but we need to execute logic based on 7 am or whatever we change the schedule to be. The below is only how to capture it before using it with whatever logic. Then the user can link to the else of the IF block to do their logic. An example of this being used can be found in the above example under "Unit Staging" option 3.

Example is based on an enum value schedule. It can be changed to whatever type of schedule is being used.

Logic Flow:

IF nowBlock + timeBlock add (use timeToTimeAdd block) to scheduleNextTime + timeBlock are inRange of min=0 and max=1 AND scheduleCurVal is UnOccupied, then set storedScheduleTime to scheduleNextTime + timeBlock. (We are getting the current time and schedule time from the dateTime format and adding them up. If they are within range and schedule curVal is Unoccupied, store the current schedules time. Reason we want to store the schedule time is because once the schedule time is reached, it changes to the next time, which would no longer be useful. So we capture the time before it changes.)