How do you: display a "Recently Added" badge if the thing was created 3 days ago?

I have a list of things, called News Articles, in a repeating group.

I want to conditionally display a Recently Added badge if the thing’s creation date was (current date) - (3 days) ago.

How do I do this?
Thank you in advance!

Some Thing's Created Date +(days: 3) > Current Date/Time will be true (yes) if the thing was created less than 3 days ago. It will be false (no) otherwise. If you wanted to invert that behavior, but change > to <.

Note: This is the “classic” Bubble way of writing such expressions. If you have parens turned on there are many other ways of writing an expression with the same outcome, but FYI. In pre-parens Bubble you can only do date/time modifiers on the left hand side of the expression. Note that you could also invert the (clarification) operands around the > and write +(days: -3) if you feel that’s easier to understand in the future. Same difference.

Thank you so much!!

1 Like