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: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to