it mostly depends on how you have the data, supposing students is a
list with each student being a dictionary with it's properties:
is expired a key of each student? if it is a boolean, as you have it
it should look like this:
user: name=
item.name ...
when: item.expired
with_items: students
if you need an expression you need to give us the criteria which you
follow to determine if a user is expired. For example:
user: name=
item.name ...
when: item.graduates > lookup('pipe', 'date +%s')
with_items: students
# assumes you keep the epoch of when he graduates
So it just needs to be an expression that evaluates to true or false,
the exact expression depends on the structure of your data.
--
Brian Coca