Hello everyone,
I've encountered an issue while using Mathematica and I'm hoping to get some clarification here. In my code, I've defined a global variable a[b][1] = x
, and then I used the ValueQ[a[b]]
function to check if a[b]
has a value. However, the result I obtained is True, instead of the expected False.
I've checked some references, including page 39 of the book "Mathematica Programming: An Advanced Introduction", which states that ValueQ[a[b]]
should return False. I'm puzzled by this result and would like to understand the reason behind this behaviour.
I've tried to look through the documentation and other resources, but I haven't found a clear explanation for this situation. So, I'd like to ask the community here: Should ValueQ[a[b]]
indeed return True in this case? If so, why is there a discrepancy between the statement in "Mathematica programming: an advanced introduction" and the actual behaviour? If not, I might be missing something, and I'd appreciate it if someone could point out my mistake and provide some assistance.