I cannot get this expression written out correctly. Each line works on it's own, but when put together I am getting an Unmatched( error.
IF ([End Date] != [List of Dates] && [Start Date] != [List of Dates] then 24*60)
ELSEIF ([End Date] > [List of Dates] then DateTimeDiff([Start Date_Time],[Row+1:List of Dates], 'Minute')
ELSEIF ([End Date] > [List of Dates] then DateTimeDiff([Start Date_Time],[Row-1:List of Dates], 'Minute')
ENDIF