Quote:
Originally Posted by ownedbycats
I figured it out! I added two lines between the clauses, and it updated the variables.  I suppose this might be a case where using variables as a typing shortcut wasn't a good idea.
Code:
program:
ids = $identifiers;
mobi = select(ids, 'mobi-asin');
amazon = select(ids, 'amazon');
if
mobi && !amazon
then
n = re(mobi, '(.*)', '\1');
ids = list_union(ids, strcat('amazon:', n), ',')
else
ids
fi;
mobi = select(ids, 'mobi-asin');
amazon = select(ids, 'amazon');
if
mobi == amazon
then
ids = list_difference(ids, strcat('mobi-asin:', mobi), ',')
else
ids
fi
|
Instead of redoing the select you could add after the list_union() line