if 1=2 then
print("nope")
end
This would be valid in some weird languages where the assignment and equality operator are the sameit however has a few less obvious problems if you are just learning to program.
This code
produces this errorCode:if 1=2 then print("nope") end
input:1: 'then' expected near '='
for me the error is obvious but if you just start to learn how to write it.
For example small basic? That is one of the reasons I found that error confusing when I just started to learn how to write code. Thanks school btw >_>This would be valid in some weird languages where the assignment and equality operator are the same