Code:
program:
k = field('#kobocoll');
if check_yes_no('#onkobo', 0, 1, 0) then
'sync.png'
else
if check_yes_no('#onkobo', 0, 0, 1) then
if list_contains(k, ',', '^Kobo Store$', '1', '') then
'drm-locked.png'
fi
if list_contains(k, ',', '^Send to Device$', '1', '') then
'sync.png'
else
'reader.png'
fi
fi
fi
EXCEPTION: Formatter: Missing 'fi' in if statement near 'fi' now. Hmm
EDIT: My indenting went weird when I pasted it here.