Hello again
There is this code which removes lines from a gallery list depending if desk has been booked for that day.
Filter(
Sort(col_Desks,Title),
Not(
Title in col_Reservations.DeskText
) && Active = 1 && Or(DeskSearchFilter.Text in Title , DeskSearchFilter.Text in Description)
)
However I want to add further conditions based on what time the desk is booked as currently if desk is booked for 1 hour (say from 10am to 11am) it'll remove the listing for that desk for the rest of the day which I don't want.
I need to figure out how where to place the conditions and how.
'startTime' and 'endTime' are variables of what time is selected for a new booking
'Check Out From' and 'Check Out To' are times from and to in the col_Reservations list of existing bookings. Not sure if I'm on the right lines.
'Check Out From' >= startTime && 'Check Out To' <= endTime || 'Check Out From' <= endTime && 'Check Out To' >= endTime
Active is just to say that desk is active and there is a filter on the screen so you can type desk number (via DeskSearchFilter)