Skip to main content
1-Visitor
March 21, 2016
Question

Nested while loops

  • March 21, 2016
  • 1 reply
  • 7318 views

Hello,

Is there a maximum number of nested while loops allowed in Prime 3.1?

Thank you,

Ken

1 reply

19-Tanzanite
March 21, 2016

Not that I know of. Why do you ask?

kriley1-VisitorAuthor
1-Visitor
March 21, 2016

Hello Richard,

I'm attempting to write an optimization  type program. I have 10 nested  while loops, each varying a variable. I get so far into adding the while statements then I get

"unknown error: mpl%_exception". I'm trying to find my error.

25-Diamond I
March 21, 2016

Hmmm - having the file itself to play with sure would help, but I could not Open your 3.1 file anyway.

I guess R.HMIN is a global constant, not a matrix. Which unit?

I must confess that the error "unknown error: mpl%_exception" at the very first assignment really looks a bit strange.

have you tried to trace back the error?

WE

BTW, its not necessary to create separate variables inside of the program. I guess the suffix means "program". You can use the original names When first USED (RHS of an assignment) the value of the global, worksheet variable is used, but when the name is used on the LHS of an assignment, a local variable is created. So any changes you do do not affect the worksheet variables.