Quote:
Originally Posted by capink
It would be something along those lines ...
Code:
program:
genre = field('#genre');
kobocoll = field('#kobocoll');
intersection = list_intersection(genre, 'fantasy,science-fiction', ',');
if intersection == '' then
strcat(kobocoll)
else
strcat(kobocoll, ',Fantasy & Sci-Fi')
fi
|
FWIW: the line 'strcat(kobocoll)' can be written simply as 'kobocoll'.