javascript: flujo if-else

operando 1:

operando 2: