I'm working on making a new column, #kobostatus. I just borrowed the template from my column icon. (I am planning to change the icons to pull from #kobostatus once I got it working.)
Code:
program:
k = $#kobocoll;
if check_yes_no('#onkobo', 0, 1, 0) then 'Send to Device'
elif check_yes_no('#onkobo', 0, 0, 1) then
if list_contains(k, ',', '^Kobo Store$', '1', '') then 'Kobo Store'
elif list_contains(k, ',', '^Send to Device$', '1', '') then 'Send to Device'
else 'Sideloaded'
fi
fi
Unfortunately, while it works in the tester, in the column itself it just outputs
TEMPLATE ERROR Formatter: Unknown function list_contains near 'list_contains' on line 7.