how to flip a boolean with a builtin change

Is that possible? I don't see a way to get an attribute out with a dsl to do something like change set_attribute(:somebool, !attribute(:somebool))
Solution:
atomic_update(:somebool, expr(not somebool)) ?
Jump to solution
2 Replies
Solution
sevenseacat
sevenseacat2mo ago
atomic_update(:somebool, expr(not somebool)) ?
Oliver
OliverOP2mo ago
thanks1

Did you find this page helpful?