if($BALANCE_N == $newWalletBalance) { print "Previous wallet Balance was:$prevWalletBalance New walletBalance is:$newWalletBalance\n"; print "Total cost and sale price respectively: $totalCostPrice and $totalSalePrice\n\n"; return 0; } else { print "Error: Wallet Balance in CDR and DB is not matching\n"; return 1; }