MazAwushu
Computer
- Dec 2, 2009
- 4
Hello,
How can I write a text file with a matrix only when a condition is true?
The problem I encountered is that you cannot use the := assignment inside an if-clause. Instead you've got the <-- (arrow - local assignment), which is unfortunately not working with WRITEPRN.
To sum up, I would like to do sth like this:
if(a, (WRITEPRN(filename) <-- data), 0)
I will accept any working solution. Even not using this very pattern.
Thank you in advance,
Maciej,
Poland.
How can I write a text file with a matrix only when a condition is true?
The problem I encountered is that you cannot use the := assignment inside an if-clause. Instead you've got the <-- (arrow - local assignment), which is unfortunately not working with WRITEPRN.
To sum up, I would like to do sth like this:
if(a, (WRITEPRN(filename) <-- data), 0)
I will accept any working solution. Even not using this very pattern.
Thank you in advance,
Maciej,
Poland.