I wanted this template (for Action Chains' single field edit) to return "99" if the values match:
Code:
program:
if and(
check_yes_no('#onkobo', '', 1, 1),
field('#fanficcat'),
raw_field('#percentread') ==# 100
)
then '99'
else raw_field('#percentread')
fi
Unfortunately I can't tell if I did this right because the template tester returns strange result:
Any ideas?