Code:
round(ʟGMST(10)/25→X
Output(1,1"Buy Potion(s)
Output(3,1,"You can buy,
Output(3,13,X
Output(3,16,"potions!
Output(4,1,"[<]
Output(4,4,P
Output(4,7,"[>]
Output(5,1,"1: Buy!
Output(6,1,"If you don't want to buy
Output(7,1,"any potions 'buy' [0]!
Repeat max(Ans={92,24,26})
getkey
End
That's my routine so far.
My question is:
Can I use the following block inside the repeat routine to increase/decrease the amount of potions? I want to restrict the input bounds to 0 to max (X potions)
Code:
P-(Ans=24)+(Ans=26→P
P-(P≤0)+(P≥X→P