company logo

Value :: operator|| - Logical OR operation

The operator returns true, when one of the operands is true and false otherwise.

The operation is supported for most data types by converting the operands in to Boolean values before performing the operation.

  bool result = v1 || v2;

//is the same as

  bool result = v1.toBool() || v2.toBool();

Return value:  Success ( bool  )

The value is true when the function was executed successfully. Otherwise the value is set to false.

Implementation details

bool Value  :: operator|| ( odaba::Value &cValue )
  • cValue - Value handle

    A value handle refers to a (usually) opened value. Invalid value handles may cause an exception.