Skip to main content
1-Visitor
March 18, 2015
Solved

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

  • March 18, 2015
  • 5 replies
  • 1991 views

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

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

Thanks..

Best answer by Fred_Kohlhepp

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

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

works

5 replies

23-Emerald I
March 18, 2015

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

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

works

19-Tanzanite
March 18, 2015

Or

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

23-Emerald V
March 18, 2015

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

1-Visitor
March 19, 2015

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)

24-Ruby IV
March 18, 2015

In program

rrr.png