$weight1 and $weight are two different variables. You've indicated that $Weight1 has the value of 560. The value of $weight has not been specified.
Set Variable [$weight1; Value:$weight]
Sets $Weight1 to the value of $Weight, which overwrites the 560 in $Weight1 with whatever value is in $Weight--presumably this Variable is empty given the result that you report.
That makes sense,
How do i assign the value for $weight1 to the variable $weight?
Set Variable [$weight; Value:$weight1]
you just had the order backwards...
I thought i tried that, but that worked