while(! Serial);
I understand that symbol as “!=” but what does mean by “!” alone?
while(not Serial);= while(! Serial); ?
2 Answers
Yes, the bang (!) negates a boolean so you can read “while(! Serial)” as “while (not Serial)”.
Read about it at this C++ tutorial under “Logical operators”.