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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

While with empty placeholder

ValeryOchkov
24-Ruby IV

While with empty placeholder

Sometimes we need to have a loop with the output from the middle of the cycle or and of the cycle (the repeat cycle).
To do this, we have to create a loop while with 1 (not 0) as the top operand and with break, continue or return operators.

See please the picture:

InfLoop.png

4 REPLIES 4
MikeArmstrong
5-Regular Member
(To:ValeryOchkov)

Good idea Valery.

I would also like to return a variable with x numbers of rows or columns, with empty placeholders for the user to input.

Mike

Mike Armstrong wrote:

Good idea Valery.

I would also like to return a variable with x numbers of rows or columns, with empty placeholders for the user to input.

Mike

Thanks!

One more idea!

SparseMatrix.png

Valery Ochkov wrote:

One more idea!

SparseMatrix.png

Not so sure about this Valery - it is inconsistent with the existing form:

Matrix.PNG

Alan

MikeArmstrong
5-Regular Member
(To:AlanStevens)

Maybe in Valerys second example the undefined elements should come in as zeros?

Mike

Top Tags