If money#=money#-item$+"#" =>0
What the hell does this mean?I have NO IDEA how the compiler resolves that.
Why are you adding "#" to item$?
Does the compiler add "#" to item$ before or after item$ is subtracted from money#? And would it make a difference? If I'm not mistaken the order that the arguments are handled can be in any order unless strictly specifying the order with parentheses. What I am getting at is that the compiler may add "#" to item$ OR it may add "#" to the result of (money# - item$). Which one do you want? (AND WHY?). There is no guarantee on how the compiler will resolve that unless you specifically add parentheses
i.e.
money# - (item$ + "#")Comparing (money# - item$ + "#") to whether it's greater than or equal to 0 (zero) will result in a 1 or a 0,
SO your initial comparison of (IF money# =) will be comparing it to either 1 or 0 which I doubt is what you want.
I don't think you have a clue what you are doing.