cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Variable usage in programming

FieldEng
12-Amethyst

Variable usage in programming

I'm trying to make a simple program to select values based on the Size variable.  But the use of "Size" in the program returns False.  However, if I assign Size to "x", and use it in the program, it works fine.  I don't understand why.  See attached.

 

Thank you in advance.

ACCEPTED SOLUTION

Accepted Solutions

Hi,

In the input table the variable "size" is used again and is the reason the program returns false as size is a vector with 4 values.

Just change the name of the variable in the table.

Capture.JPG

Cheers

Terry

View solution in original post

3 REPLIES 3

Hi,

In the input table the variable "size" is used again and is the reason the program returns false as size is a vector with 4 values.

Just change the name of the variable in the table.

Capture.JPG

Cheers

Terry

Brilliant.  Thanks Terry.  Thanks for educating me.  Much appreciated.

ttokoro
20-Turquoise
(To:FieldEng)

They are different variables.

image.pngimage.png

Announcements

Top Tags