Skip to main content
added 22 characters in body; edited tags
Source Link
Karsten7
  • 27.6k
  • 5
  • 74
  • 135

If I have a variable x := "a"x := "a".
Is there a way I can use it to assign a value to aa, by just referring to xx?
If I try Evaluate[x]=4Evaluate[x]=4 I get error messages about Tag Times in x Null is protectedTag Times in x Null is protected.
I would like some way of having it execute a = 4a = 4.

If I have a variable x := "a" Is there a way I can use it to assign a value to a, by just referring to x If I try Evaluate[x]=4 I get error messages about Tag Times in x Null is protected I would like some way of having it execute a = 4

If I have a variable x := "a".
Is there a way I can use it to assign a value to a, by just referring to x?
If I try Evaluate[x]=4 I get error messages about Tag Times in x Null is protected.
I would like some way of having it execute a = 4.

Source Link

Is it possible to assign a value where the target is itself a variable

If I have a variable x := "a" Is there a way I can use it to assign a value to a, by just referring to x If I try Evaluate[x]=4 I get error messages about Tag Times in x Null is protected I would like some way of having it execute a = 4