Another Named Variable Object question
How can I compare a "Named Variable Object" variable to something in the condition side of things?
Here's what I did:
For the condition, I clicked on the "Named Variable Object", selected "Alterable Values", then selected "Compare to one of the alterable values."
When the box popped up asking me to select my variable, I clicked "Use expression". Upon THAT box popping up, I clicked "Retrieve data from an object."
That's when I was finally able to click on the "Named Variable Object" and select "Value" and "Get Value".
After that, my condition looks like this:
Alterable Value (GetValue{ " Named Variable Object ", "Desired Variable")) of "Named Variable Object" >= 15
And yet the program runs as if the condition is never fulfilled, when I KNOW it is. Is there something I'm screwing up here?
Thanks for the help!
Re: Another Named Variable Object question
I think alterable values are 0 based... ?
Re: Another Named Variable Object question
Maybe this illustrates it better:
http://www.megaupload.com/?d=FPCJHOYG
Re: Another Named Variable Object question
Re: Another Named Variable Object question
I mean that Alterable Value A is #0 and not #1.
Re: Another Named Variable Object question
Hi alxmrg. Would you please use box.net or some other site to upload your examples?
Thanks
Marv
Re: Another Named Variable Object question
http://www.filedropper.com/example_6
That should be better-- it was giving me problems yesterday. Thanks!
Re: Another Named Variable Object question
But why would that prevent me from calling upon the object for a variable? What does it matter what slot it is?
Re: Another Named Variable Object question
It sounds like you're not wanting to use alterable values at all, is that right? Then you should be using the condition "Compare two general values" in the "special object" (built in to the expression editor, looks like a computer), then put your code in there.
Re: Another Named Variable Object question
Quote:
Originally Posted by alxmrg
But why would that prevent me from calling upon the object for a variable? What does it matter what slot it is?
Because what if you are getting the wrong alterable value and THAT is causing it to not be true, due to it being the wrong number?