in reply to Re: Re: MS Outlook GetSharedDefaultFolder
in thread MS Outlook GetSharedDefaultFolder

Wait a minute. You want to assign the value of $namespace->GetSharedDefaultFolder($recipient, 6) to $p2? Then why did you put the assignment inside of an if statement?

Replies are listed 'Best First'.
Re^4: MS Outlook GetSharedDefaultFolder
by Zeroth (Beadle) on Sep 03, 2003 at 20:27 UTC
    Because $p2 = $namespace->GetSharedDefaultFolder($recipient,6) returns a lvalue, which the "if" operator interprets as true, if GetSharedDefaultFolder() succeeds. Otherwise it returns undef which "if" interprets as false.