Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
i know it's very basic but i cannot find an answer by myself:
i cannot put ":=" after second value (r2).
Thanks..
Solved! Go to Solution.
It's not basic, it's not allowed.
r1:=1 r2:=1 r3:=1
works
Or
r1:=1 r2:=r1 r3:=r2
ptc-4982277 wrote:
i know it's very basic but i cannot find an answer by myself:
i cannot put ":=" after second value (r2).
Thanks..
A method I sometimes use is to put the variable names in a vector or array and assign the values from another vector/array.
(The 'ones' function is part of my standard Utilities Area that I have on my Normal template. I've copied it out so you can see what it does (same as the Matlab function of the same name).
Stuart
tkanks all.
I had them writen r1:=1 r2:=1 r3:=1 but i wanted to shorten the line with less text.
(and your method, Stuart, is way out of my objective , but thanks for answer)
In program