API Reference > OdDAI Namespace > Classes > Boolean Class > Boolean Operators > = Operator > Boolean::= Operator (OdAnsiString &)
Boolean::= Operator (OdAnsiString &)
Syntax
C++
Boolean& operator =(const OdAnsiString & val);
Parameters 
Description 
const OdAnsiString & val 
[in] An ANSI string to be assigned (a right-hand operand of the assignment operation).  

The reference to the Boolean object modified by the assignment operation.

Assignment operator for the Boolean data type. The operator casts specified ANSI string to the Boolean value and assigns it to the object.

The specified ANSI string should be:

  • "F" to set the Boolean object to the False value.
  • "T" to set the Boolean object to the True value.

In all other cases, the operator makes the Boolean object undefined (its value is unset).

Copyright (c) 2002-2021. Open Design Alliance. All rights reserved.