Hi all
I have created an IF statement inside a collect which posts to dataverse as you can see below:
Collect(
'Time',
{
'Code': TextInputCode.Text,
'Login Time': If(IsBlank(DefaultStartTime7am),Now();DateTimeValue("7:00 AM")),
}
);
So if the label is blank then it will create a now() time for certain users while if not blank, it will say that the user started at 7am.
I am trying to now figure out how I can add into this statement that if the user with a non blank label signs in past 7am, it will be recorded as now() instead of 7am. Im unsure how to add this into the syntax if someone could help me write this out. I have a feeling I would need to use greater or less than signs to accomplish this.
Thanks so much for the help. Kind regards.