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
ebe equal to 3 andfooare not empty? - b) The
ifcorresponding toe == 3shall be executed together with theelseofif e == 4?
Those
ifinterrupt the function? ie, there isreturnwithin thoseif?– Sergio
Each
ifmanipulates the css properties of some Ivs but the latterifdepends on the variablevarto be executed the same says whether the user is logged in or not, if he is notvaris empty, but what if the user is logged in changingvarfor some value, and theifis different from 4, what happens?– Leo Letto