Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
wiki:mathematica [2015/05/15 11:37] – martinr | wiki:mathematica [2015/05/15 12:09] (aktuell) – martinr | ||
---|---|---|---|
Zeile 4: | Zeile 4: | ||
You may want to react on error messages created by a called function. For instance if you open a file and it cannot be opened. | You may want to react on error messages created by a called function. For instance if you open a file and it cannot be opened. | ||
- | < | + | < |
Check[expr, | Check[expr, | ||
</ | </ | ||
evaluates expr, and returns the result, unless messages were generated, in which case it evaluates and returns failexpr. | evaluates expr, and returns the result, unless messages were generated, in which case it evaluates and returns failexpr. | ||
+ | < | ||
Check[expr, | Check[expr, | ||
+ | </ | ||
checks only for the specified messages. | checks only for the specified messages. | ||
+ | < | ||
Check[expr, | Check[expr, | ||
+ | </ | ||
checks only for messages in the named message group. | checks only for messages in the named message group. | ||
Example: | Example: | ||
- | Check[(a=<<" | + | < |
+ | Check[(a=<<" | ||
+ | </ | ||