Skip to main content
12-Amethyst
Solved

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.

terryhendicott
21-Topaz II

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

3 replies

terryhendicott
21-Topaz II

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

Translate
FieldEng12-AmethystAuthor
12-Amethyst

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

Translate
ttokoro
21-Topaz I

They are different variables.

image.pngimage.png

Translate
t.t.