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

Community Tip - You can change your system assigned username to something more personal in your community settings. X

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

ptc-4982277
1-Visitor

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..

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

StuartBruff
23-Emerald III
(To:ptc-4982277)

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

Announcements

Top Tags