Top  Previous  Next

Scripts > Class elements and c++ instructions > Interpreted C++ instructions > Variable types > bool




bool <identifier>;




The key word bool indicates a data type, which only can have the values false or true. The key words false and true are boolean constants with predefined values. The numerical equivalent of false is null and true corresponds one.


A value of the type bool can be converted into a value of the type int. The numerical conversion sets false to null and true to one.


The other way round it is possible to convert double or int values into values of the type bool. Thereby an arithmetic null is converted to the value false, and each other value to true.

This page belongs to the TextTransformer Documentation

Home  Content  German