Quote:
Originally Posted by ownedbycats
Question:
Code:
program:
if
readgoal() in $#admintags
then ''
else
$#rggenres
fi
readgoal():
Code:
program: strcat('readinggoal:', format_date(today(), 'yyyy'))
I made this to clear a specific column if there's a readinggoal:2025.
However, if there's another readinggoal: tag (example: readinggoal:2020) alongside the 2025 tag, I want to not clear it.
How do I do this?
If it helps they range from 2020-2024.
|
You want to remove the value from a column if there is a specific tag but not another tag similarly formed? I think you can do this with list_count_matching('readinggoal:202'). If it returns 1 then there is only one such tag. You would then need to be sure that the one tag is the one you want.
I'm not clear about what you are trying to do, so I can't get more precise.