Is there an @function equivalent for @ismember to use with dates? Im attempting to check a specific date (@thisvalue) to see if it exists in a list of dates (holidaylist).
On the date column in the HolidayView, I had to convert the date to text for some other calculations. But in the calculation above I used the @text formula since @ismember looks for text.
@Text(Today) = @Text(DateRange);
@Prompt([Ok]; "Whoopppeeeee"; @Text(Today) + " is in the list of dates " + @NewLine + @NewLine + @Implode(@Text(DateRange); @NewLine));
@Prompt([Ok]; "Darn it"; @Text(Today) + " is not in the list of dates " + @NewLine + @NewLine + @Implode(@Text(DateRange); @NewLine))
);
@If(
@Text(ALongTimeAgo) = @Text(DateRange);
@Prompt([Ok]; "Whoopppeeeee"; @Text(ALongTimeAgo) + " is in the list of dates " + @NewLine + @NewLine + @Implode(@Text(DateRange); @NewLine));
@Prompt([Ok]; "Darn it"; @Text(ALongTimeAgo) + " is not in the list of dates " + @NewLine + @NewLine + @Implode(@Text(DateRange); @NewLine))
);
@If(
@IsMember(@Text(Today); @Text(DateRange));
@Prompt([Ok]; "Whoopppeeeee"; @Text(Today) + " is a MEMBER of the list of dates " + @NewLine + @NewLine + @Implode(@Text(DateRange); @NewLine));
@Prompt([Ok]; "Darn it"; @Text(Today) + " is not a MEMBER of the list of dates " + @NewLine + @NewLine + @Implode(@Text(DateRange); @NewLine))
);
@If(
@IsMember(@Text(ALongTimeAgo); @Text(DateRange));
@Prompt([Ok]; "Whoopppeeeee"; @Text(ALongTimeAgo) + " is a MEMBER of the list of dates " + @NewLine + @NewLine + @Implode(@Text(DateRange); @NewLine));
@Prompt([Ok]; "Darn it"; @Text(ALongTimeAgo) + " is not a MEMBER of the list of dates " + @NewLine + @NewLine + @Implode(@Text(DateRange); @NewLine))