---
name: "VarOr"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/VarOr"
---

# VarOr(3w)

## NAME

**VarOr** (OLEAUT32.157)

## SYNOPSIS

HRESULT VarOr\
  (\
   LPVARIANT *pVarLeft*,\
   LPVARIANT *pVarRight*,\
   LPVARIANT *pVarOut*\
  )

## DESCRIPTION

Perform a logical or (**OR**) operation on two variants.

## PARAMS

*pVarLeft* **\[In\]**  First variant.

*pVarRight* **\[In\]**  Variant to **OR** with *pVarLeft*.

*pVarOut* **\[Out\]**  Destination for **OR** result.

## RETURNS

**Success:** **S\_OK**. *pVarOut* contains the result of the operation with its type taken from the table listed under **[VarXor(3w)](/VarXor/3w.md)**.

**Failure:** An **HRESULT** error code indicating the error.

## NOTES

See the Notes section of **[VarXor(3w)](/VarXor/3w.md)** for further information.

## IMPLEMENTATION

Declared in **"oleauto.h"**.

Implemented in **"dlls/oleaut32/variant.c"**.

Debug channel **"variant"**.
