cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

How cand i write r1:=r2:=r3:=1?

ptc-4982277
1-Newbie

How cand i write r1:=r2:=r3:=1?

i know it's very basic but i cannot find an answer by myself:

i cannot put ":=" after second value (r2).

Thanks..

1 ACCEPTED SOLUTION

Accepted Solutions

It's not basic, it's not allowed.

r1:=1 r2:=1 r3:=1

works

View solution in original post

5 REPLIES 5

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

rrr.png

Top Tags