Hello everyone,(adsbygoogle = window.adsbygoogle || []).push({});

I have for loop in Mathematica. After every step Mathematica has new results calculated. I want to see only some results, those who met certain conditions, not results from all steps. Say, I have 10000 steps and I don't need all 10000 results, but only those that met certain conditions. There are at least two or more conditions to be met. How can I tell Mathematica to print only those results?

So I want to tell this to Mathematic ain a for loop:

Ifais true andbis true orcis true anddis true, then print blablabla, else do nothing.

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Printing results if certain conditions are met in Mathematica

**Physics Forums | Science Articles, Homework Help, Discussion**