I saw that putting boolean=!boolean is supposed to toggle a boolean variable, but it's not working for something like object.boolean=!object.boolean. How can I toggle a boolean?
![](/gfx/set_like0.png)
![](/gfx/top_drop.png)
![](/bimg/pi/pi16.png)
Yeah.
Syntax error
char.sf=!char.sf
unexpected symbol near '!'
![](/gfx/set_like0.png)
![](/gfx/top_drop.png)
![](https://www.lexaloffle.com/bbs/files/10844/dino.png)
Try using “not”
b = not b
I don’t believe that “!” is implemented
![](/gfx/set_like0.png)
![](/gfx/top_drop.png)
![](https://www.lexaloffle.com/bbs/files/10198/W0rILG8T.png)
The ! operator works when used with != in if statements, but not otherwise.
Or should I say... 😎 ... !otherwise.
I'll show myself out.
![](/gfx/set_like0.png)
![](/gfx/top_drop.png)
![](/bimg/pi/pi16.png)
!LOL
lmao just kidding, I got a good laugh out of that pun.
[Please log in to post a comment]