08.09.2012, 08:45
When you use "=" it means you are assigning something to the some value
variable_A (variable_B) -> your container
1 (243) -> some value
and with "==" you check if something is equal to something else
Код:
new variable_A; // You create new variables ( empty "box") new variable_B; variable_A = 1; // putting some value in "boxes" variable_B = 243;
1 (243) -> some value
and with "==" you check if something is equal to something else
Код:
if( variable_A == variable_B ) { // if variable_B is equal to variable_A this part of code will be executed }