Re: Multiple IF Conditions
- From: Dr J R Stockton <jrs@xxxxxxxxxxxxxxxxxx>
- Date: Sat, 5 Jul 2008 16:32:38 +0100
In microsoft.public.scripting.vbscript message <eBtb1GY3IHA.3480@TK2MSFT
NGP03.phx.gbl>, Thu, 3 Jul 2008 21:57:19, "Richard Mueller [MVP]"
<rlmueller-nospam@xxxxxxxxxxxxxxxxxxxx> posted:
I don't think there is a better way. In theory if you know that one or a few
of the conditions are more likely to be false, the code could be more
efficient if you nested the If statements, testing the ones likely to be
false first.
Not necessarily; some conditions take more work than others.
--
(c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk Turnpike v6.05 MIME.
Web <URL:http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.
Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
Do not Mail News to me. Before a reply, quote with ">" or "> " (SonOfRFC1036)
.
- References:
- Multiple IF Conditions
- From: preet
- Re: Multiple IF Conditions
- From: Richard Mueller [MVP]
- Multiple IF Conditions
- Prev by Date: Re: wshremote not running script on remote computer
- Next by Date: Re: wshremote not running script on remote computer
- Previous by thread: Re: Multiple IF Conditions
- Next by thread: Re: Multiple IF Conditions
- Index(es):
Relevant Pages
|