Quote:
Originally Posted by ownedbycats
I think one of the ids in the second section is checking the original state of the column and not the updated one.
|
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