Skip to main content
12-Amethyst
Dec 15, 2023 3:18 PM UTC
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
Dec 15, 2023 4:04 PM UTC

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
Dec 15, 2023 4:04 PM UTC

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
Dec 15, 2023 4:22 PM UTC

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

Translate
ttokoro
21-Topaz I
Dec 16, 2023 12:45 AM UTC

They are different variables.

image.pngimage.png

Translate
t.t.