Log In  
Log In  

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?

P#61674 2019-02-09 01:08

are you getting an error?

P#61675 2019-02-09 03:40

Yeah.

Syntax error
char.sf=!char.sf
unexpected symbol near '!'

P#61677 2019-02-09 04:10

Try using “not”
b = not b
I don’t believe that “!” is implemented

P#61680 2019-02-09 07:01

That worked. Thanks for your help.

P#61683 2019-02-09 11:59

The ! operator works when used with != in if statements, but not otherwise.

Or should I say... 😎 ... !otherwise.

I'll show myself out.

P#61695 2019-02-09 19:20 ( Edited 2019-02-09 19:20)

!LOL

lmao just kidding, I got a good laugh out of that pun.

P#61703 2019-02-10 00:56

[Please log in to post a comment]

About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2019-04-22 08:04 | 0.021s | 2097k | Q:21