View Single Post
Old 03-19-2021, 05:36 PM   #1
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,069
Karma: 76037135
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Template: possible error?

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:

Click image for larger version

Name:	2021-03-19 18_35_44-Template tester.png
Views:	93
Size:	17.9 KB
ID:	186046

Any ideas?

Last edited by ownedbycats; 03-19-2021 at 05:43 PM.
ownedbycats is online now   Reply With Quote