This worked
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 'Kobo Store' in k then 'Kobo Store'
elif 'Send to Device' in k then 'Send to Device'
else 'Sideloaded'
fi
fi
Ideally I'd want to change it to an exact match
'^Kobo Store$', but I forgot how to make it use a regexp and it's not likely to overlap any of my other collections anyways.