View Single Post
Old 04-05-2021, 05:51 AM   #24
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: 8,755
Karma: 62032371
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Should local variables work for check_yes_no?

e.g.

Code:
program:
k = $$#kobocoll;
o = field('#onkobo');
if check_yes_no(o, 0, 1, 0) then 'sync.png' 
elif check_yes_no(o, 0, 0, 1) then
	if list_contains(k, ',', '^Kobo Store$', '1', '') then 'drm-locked.png'
	elif list_contains(k, ',', '^Send to Device$', '1', '') then 'sync.png'			
	else 'reader.png'
	fi
fi
results in null values where putting in the check_yes_no('#onkobo', x, x, x) gives results

Last edited by ownedbycats; 04-05-2021 at 06:21 AM.
ownedbycats is offline   Reply With Quote