Path: csiph.com!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.javascript Subject: Re: null variable issue??? Date: Fri, 20 May 2016 14:10:57 +0100 Organization: A noiseless patient Spider Lines: 23 Message-ID: <87zirkub6m.fsf@bsb.me.uk> References: <1aaa235c-121b-4bdd-af96-081693f06a0d@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="23831"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19IgFtpSOiBQeBBhIDu50VrYnAaHwa5rSA=" Cancel-Lock: sha1:mbp4VW1eUoK7XEPJhBUEiyER4mk= sha1:wxROi/4DJkpy9/GqOlQNJQmjvNk= X-BSB-Auth: 1.524e295303154fae3894.20160520141057BST.87zirkub6m.fsf@bsb.me.uk Xref: csiph.com comp.lang.javascript:30497 helixpoint@gmail.com writes: > On Friday, May 20, 2016 at 7:45:35 AM UTC-4, helix...@gmail.com wrote: >> This is the line. Can't I use...&& to stop this from returning null >> >> return (E.Util.ieVersion() < 9 ? a.caller : a.caller.caller); >> >> I know this is wrong, but something like.... >> >> return (E.Util.ieVersion() < 9 ? &&a.caller : &&a.caller.caller); What's the && about? That looks like a syntax error. > Both are returning null. How do I return false if both are null You probably think that's clear, but it's not. To what two things does "both" refer? But I will repeat the advice you've had: test for browser versions, and using "caller" are both signs that something is amiss elsewhere. -- Ben.