Skip to main content
12-Amethyst
December 15, 2023
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.

21-Topaz II
December 15, 2023

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

21-Topaz II
December 15, 2023

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
December 15, 2023

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

Translate
ttokoro
21-Topaz I
December 16, 2023

They are different variables.

image.pngimage.png

Translate
t.t.