0

Why can't we use '=' operator in these statements ?

When I tried that, it gave me a syntax error

28th Mar 2020, 4:02 AM
Ahsen Mirza
Ahsen Mirza - avatar
2 Answers
+ 1
hi, what language do you use (python, JS...) ? basic syntax is usually : if (... some condition ...) {...code to execute if True...} ; in condition you can use something like : x==1 (comparaison operator) it's better than : x=1 (assignation operator who will always true or always false)
28th Mar 2020, 4:47 AM
Oneill~ŠžŠ½ŠµŠøŠ»Š»~億尼尔~ą¤“ą¤Øą„€ą¤²~Ų§ŁˆŁ†ŪŒŁ„~*ā€Ž
Oneill~ŠžŠ½ŠµŠøŠ»Š»~億尼尔~ą¤“ą¤Øą„€ą¤²~Ų§ŁˆŁ†ŪŒŁ„~*ā€Ž - avatar