> if (success = true) // Oops!
Hence the better way of comparing literals or consts to vars:
if ( true = success ) // Compile-time error will enlighten youHence the better way of comparing literals or consts to vars:
if ( true = success ) // Compile-time error will enlighten you