mercredi 11 novembre 2020

If else logic missing in java for custom script [closed]

I have a code to execute in script but the 3rd line I am getting error it is not repeat again.that means if cash out >4.40 it should execute cashout-1.10.its executing one time only and going 2nd line.it is not repeating until below 1.10. My logic is if cashout >4.40 new cashout is 3.30 and next cashout is 2.20 and next 1.10 now it execute 5th line that means cashout 9.98 then it should repeat the logic of cashout -1.10.that means 9.98-1.10=8.88 7.78 6.68. Please help on this logic

else {
cashOut = ((losses / Math.floor(currentBet)) / 1) + 1.02;
if(cashOut>4.40){
cashOut=cashOut-1.10;}
if(cashOut<1.10){
cashOut=9.98;}**

Aucun commentaire:

Enregistrer un commentaire