> if (success = true) // Oops!
Hence the better way of comparing literals or consts to vars:
if ( true = success ) // Compile-time error will enlighten you
https://en.wikipedia.org/wiki/Yoda_conditions