Change to C++ for boolean