or nested if statements?
if (opt1) {
if (opt2) {
}
}
Am 03.06.2012 18:13, schrieb Felix Gonschorek:
>
> Am 03.06.2012 00:00, schrieb TG:
>> If I would not want to put my codes in external file, what option do I have?
>> :]
>
> what about that:
>
> function and(opt1, opt2) {
> if (!opt1) return false;
> if (!opt2) return false;
> return true;
> }
>
> if (and(xhr2.readyState === 4, xhr2.status === 200)) {
>
> }
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]