What am I missing with my Bool conditions?

Your function is trying to calculate the price. What I’m saying is, all you have to do, is set the category to ‘trade goods’, and the price will always be the gold price. Regardless of anything else.