'==' is the operator to check for equality. Further, comparing a boolean to 'true' or 'false' in a conditional statement is unnecessary. Simply if( flag ) or if ( !flag ) where 'flag' is a boolean...