Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
I have a variable defined as the result of a function. Worked perfectly the first time. A few lines further down the page, I use the same variable but define it as the result of that same function, only with a different argument. Now it presents me with the mentioned error "This value must be a function".
Solved! Go to Solution.
I kinda figured it out on my own. I think the problem is that both the variable and function are named the same, resulting in a recursive function I believe. Why it worked for the first variable, I have no idea though. I just changed the function variable with a prefix "func_", now it all works fine
I kinda figured it out on my own. I think the problem is that both the variable and function are named the same, resulting in a recursive function I believe. Why it worked for the first variable, I have no idea though. I just changed the function variable with a prefix "func_", now it all works fine
One of the really challenging things about Prime is the way it uses labels. You may have the same letter combination and by changing the label it can be different things. And if your formatting is strange, it can be tough to tell:
I'd start looking at how things are labeled!