Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
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
Solved! Go to Solution.
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:

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:

Thank you Mark and Richard. This is exactly what I was needing.
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.
