company logo

Value :: toBool - Convert value to Boolean value

The function returns whether the value is true (true) or not (false). True and false values are defined for most elementary data types.

When no instance is selected in the value, the function throws an exception.

Return value:  Success ( bool  )

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

Implementation overview

Implementation details

  1. Get Boolean value from current value
    bool Value  :: toBool (  )

    The function returns, whether the value for the current value handle is true.

  2. to list
  3. Is value for passed property true
    bool Value  :: toBool ( odaba::String &vSimplePath )

    The function returns whether the value of the property with the name passed in vSimplePath is true or not. When no property exists with the passed name the function throws an exception.

    This is a short form for value(vSimplePath).toBool().

    • vSimplePath - Simple property path

      A simple property path may contain an extent or property name but also a sequence of property names separated by dot. A simple property path must not contain parenthesis or preceding dots.

  4. to list