Skip to main content
1-Visitor
Mar 18, 2015 9:09 AM UTC
Solved

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

23-Emerald I
Mar 18, 2015 11:23 AM UTC

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

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

works

5 replies

23-Emerald I
Mar 18, 2015 11:23 AM UTC

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

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

works

Translate
19-Tanzanite
Mar 18, 2015 12:52 PM UTC

Or

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

Translate
23-Emerald V
Mar 18, 2015 1:50 PM UTC

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

Translate
1-Visitor
Mar 19, 2015 3:12 PM UTC

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)

Translate
24-Ruby IV
Mar 18, 2015 2:11 PM UTC

In program

rrr.png

Translate