<< Click to Display Table of Contents >> Navigation: NxLib API > C++ Interface > NxLibItem > asBool |
Try to read a boolean value from this tree item.
Variants throwing exceptions on API errors:
bool asBool() const
Variants returning API errors as int* parameter:
bool asBool(int* returnCode) const
returnCode |
The error code returned when accessing the item. |
The item value, if the item was of the corresponding JSON type. Otherwise the return value is undefined.