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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Multiple outputs from program

kriley
1-Newbie

Multiple outputs from program

Hello,

I have a question about how I can get multiple out puts from a single program made up of nested loops.

Can I only return a single variable from a program or am I looking at this all wrong. I've attached a sample worksheet in Prime 3.1.

I'm trying to understand how to get dout, rout, eout as well as a1 out of the program.

Thanks,

Ken

1 ACCEPTED SOLUTION

Accepted Solutions
MJG
18-Opal
18-Opal
(To:kriley)

You can make the program output a matrix with all the variables you desire.  Just make the last line of your program "stack(dout, rout, eout, a1)"

If you want each value as an individual variable, you can also use a matrix of variables to define the program.  Example:

View solution in original post

4 REPLIES 4
MJG
18-Opal
18-Opal
(To:kriley)

You can make the program output a matrix with all the variables you desire.  Just make the last line of your program "stack(dout, rout, eout, a1)"

If you want each value as an individual variable, you can also use a matrix of variables to define the program.  Example:

kriley
1-Newbie
(To:MJG)

Thank you Mark and Richard. This is exactly what I was needing.

RichardJ
19-Tanzanite
(To:kriley)

Since it's Prime 3.1 I can't read your file, but something like this:

Thank you Mark and Richard. This is exactly what I was needing.

Top Tags