Recently I used this to toggle a Boolean value, b being the current value and self.status being the result
self.status = (b-1)*(b-1)
This rather than use an if statement
How could I use the same concept to toggle more than 2 values? (ie -1 0 1)