Haven't tested it, but could it not be written as:
var Private = new Boolean(!Clan && !Group && !Admin);

Jesper Staun Hansen wrote:
> Hello.
>
> I was just wondering if this would even work for all:
> var Private = (!Clan && !Group && !Admin)? new Boolean(true) : new 
> Boolean(false);
>
> Would the new Boolean(true) be passed to Private or would I error by 
> design here?
> Does it work for all new something.
>
> _______________________________________________
> Project_owners mailing list
> [email protected]
> https://www.mozdev.org/mailman/listinfo/project_owners
>   

_______________________________________________
Project_owners mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/project_owners

Reply via email to