T
Tom Lavedas
On May 27, 5:05 pm, "M" <[email protected]> wrote:
If funSomeFunction(strABC, strDEF) OR _
funSomeFunction(strGHI, strJKL) OR _
funSomeFunction(strABC, strDEF) Then ...
This is always true for *functions* in VBS, regardless of the use.
See the documentation:
WSH 5.6+ documentation download (URL all one line)
http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en
In particular read "Function procedures, about Function procedures".
_____________________
Tom Lavedas
The function parameters need to be enclosed in parentheses, as in ...
> Hello:
>
> What's a simple approach for performing an OR operation on multiple callsto a function that returns a Boolean value?
>
> For example, I have this function that returns either True or False.
>
> Function funSomeFunction(strParam1, strParam2)
> funSomeFunction = True [False]
>
> I need to call the function multiple times and perform an OR operation onthe return values, like this:
>
> If funSomeFunction strABC, strDEF OR funSomeFunction strGHI, strJKL OR funSomeFunction strABC, strDEF Then
>
> I've tried the above and also tried putting each function call in parenthesis and it still didn't work. I'm trying to avoid assigning each return value to its own variable so the script doesn't get too bloated (I have to call the function 5 times), but if that's the only way, then I'll do it.
>
> Thank you.
>
> --
> Regards,
> M
> MCTS, MCSAhttp://SysAdmin-E.com
If funSomeFunction(strABC, strDEF) OR _
funSomeFunction(strGHI, strJKL) OR _
funSomeFunction(strABC, strDEF) Then ...
This is always true for *functions* in VBS, regardless of the use.
See the documentation:
WSH 5.6+ documentation download (URL all one line)
http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en
In particular read "Function procedures, about Function procedures".
_____________________
Tom Lavedas