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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! 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