Is not one “flag” on or off.
Is one array where trial is present or not…
If you’re not familiar with scripting, better leave it alone.
foreach item on array,
copy the value in new array except if is “trial” and must removed,
if trial must be added,
if trial is not already present, add trial at the end