1
I have a function that performs different actions on the page according to the callback passed to her, I am using if
to verify which callback called on function('callback')
but now I needed to do an update anyway and now it is like this:
function Acoes(e){
if(e == 1){...}
if(e == 2){...}
if(e == 3){...}
if(e == 4 && foo == ""){...}else{...}
}
- to) What will happen if
e
be equal to 3 andfoo
are not empty? - b) The
if
corresponding toe == 3
shall be executed together with theelse
ofif e == 4
?
Those
if
interrupt the function? ie, there isreturn
within thoseif
?– Sergio
Each
if
manipulates the css properties of some Ivs but the latterif
depends on the variablevar
to be executed the same says whether the user is logged in or not, if he is notvar
is empty, but what if the user is logged in changingvar
for some value, and theif
is different from 4, what happens?– Leo Letto