I'm not sure this is usual but I want to clarify and know some stuffs regarding if/else calculations.
For an example the user have inputted certain amount in the space provided. And then with the data inputted I want to create and if else statement. Like, if they inserted $300 then I want to them know by investing this much they will get 10% more in return. But the rate is not fixed. If the amount is between $300 to $500 then the rate is 10% but if the amount is $600 to $700 then the rate will be 15%.
So how do I create a code that says if they invest this much then they will receive this percentage in return like 5%, 10% and 20%.
I appreciate all the help that could be given to me. Thanks.