I made a template. It works but I think I indented it wrong. Where should I put the indents?
Code:
program:
if
and(check_yes_no('#read', '', '1', ''),
raw_field('#percentread') ==# 100,
field('rating'),)
then 'Yes'
else field('#read')
fi
Context: In FanFicFare, I have it set #read to 'no' when updating a fanfic. But this also runs when I am using 'update metadata' on previously-read fanfics, for instance to update series numbers. This just sets it back to 'yes' if it's 100% read and has a rating. I put it my Cleanup: Fanfiction action chain.