I'm sure (or at least I hope so ) that you all, at some time, have assigned a string to a boolean. Example:
* You read a value 'false' from a file or database
* and then just assign it to a boolean
Code: Select all
string conditionFromFile = FileRead( ... )
bool bCondition = conditionFromFile ;
Code: Select all
main()
{
DebugN( "False -> " + (bool)"False" );
DebugN( "false -> " + (bool)"false" );
DebugN( "True -> " + (bool)"True" );
DebugN( "true -> " + (bool)"true" );
}
Code: Select all
WCCOAui1:["False -> TRUE"] <== !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WCCOAui1:["false -> FALSE"]
WCCOAui1:["True -> TRUE"]
WCCOAui1:["true -> TRUE"]
Hope it helps someone
share the fun
Frenk Mulder