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