0
Why can't we use '=' operator in these statements ?
When I tried that, it gave me a syntax error
2 odpowiedzi
+ 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)