Is there a way to negate a boolean returned to variable? February 4, 2023 by Tarik You can do this: item.active = not item.active That should do the trick 🙂