Skip to main content
12-Amethyst
December 15, 2023
Solved

Variable usage in programming

  • December 15, 2023
  • 1 reply
  • 1433 views

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.

Best answer by terryhendicott

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

1 reply

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

FieldEng12-AmethystAuthor
12-Amethyst
December 15, 2023

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

ttokoro
21-Topaz I
21-Topaz I
December 16, 2023

They are different variables.

image.pngimage.png

t.t.