MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/teqb37/static_bool_iscrazymurderingrobot_false/i0r5mke/
r/ProgrammerHumor • u/speckz • Mar 15 '22
257 comments sorted by
View all comments
Show parent comment
32
ifCrazyMurderingRobot = true assigns the variable to true—the programmer meant to use == instead. = is the assignment operator; == is a comparison for equality operator.
ifCrazyMurderingRobot = true
4 u/_Sofa-King_ Mar 15 '22 oooOooooOoooo thanks!
4
oooOooooOoooo thanks!
View all comments
Show parent comment
32
u/ksschank Mar 15 '22
ifCrazyMurderingRobot = trueassigns the variable to true—the programmer meant to use == instead. = is the assignment operator; == is a comparison for equality operator.