Windows apps
Collapse the table of content
Expand the table of content

VarOr Function

Performs a logical disjunction on two variants.

HRESULT VarOr( 
  LPVARIANT  pvarLeft,         
  LPVARIANT  pvarRight,  
  LPVARIANT  pvarResult
);

pvarLeft

[in] Points to the first variant.

pvarRight

[in] Points to the second variant.

pvarResult

[out] Points to the result variant.

The function returns one of the following:

If pvarLeft is

If pvarRight is

Then pvarResult is

TRUE

TRUE

TRUE

TRUE

FALSE

TRUE

TRUE

NULL

TRUE

FALSE

TRUE

TRUE

FALSE

FALSE

FALSE

FALSE

NULL

NULL

NULL

TRUE

TRUE

NULL

FALSE

NULL

NULL

NULL

NULL

Show:
© 2017 Microsoft