$DisplayedAttributes in v9.0.0+ is List type. Prior to v9 it was a Set. But as Sets now actively re-sort themselves, and the user needs to be able to control the Displayed Attributes list order, the attribute needs to be a List.
A notable difference between Lists and Sets is that Sets de-dupe themselves and Lists don’t. So a List can contain the same value more than once. This is expected behaviour
$DisplayedAttributes’s default value is nothing, i.e. ""
. Now let’s use the stamp (or a rule, edict or agent action) to apply this code:
$DisplayedAttributes=$DisplayedAttributes + "Tags";
The result:
Now lets ryn the action 3 more times and see the result:
$DisplayedAttributes is a List and we’ve added 3 more thinfs to it. So as we’ve instructed it the attribute now displays the $Tags attribute 4 times, as the $ Displayed Attributes attribute value is “Tags;Tags;Tags;Tags”:
So. Don’t use the code in an action that repeats automatically, e.g. a rule, edict or agent action.
HTH