Hello.
Is there any way to have an if-then type of statement in a calculated question formula?
E.g. I want to ask a question like
"Johnny's allowance is ${X} per week. He already has {Y} amount of $, and he wants to buy a bike that costs ${Z}. If he is already able to buy the bike, then how much money will he have left after the purchase? And if he does not have enough money yet, then how many more weeks does he need to wait before he does?"
The answer should be either {Y}-{Z} if {Y}-{Z} > 0,
or ({Z}-{Y}) / {X} if {Y}-{Z} < 0. Is there a way to set this up?
Thank you