./
assert.pro
topassert
Utilities
This procedure is a simple routine to check assumptions during programming. If, at any time, an assertion fails to be true, the program halts with an error message.
The procedure evaluates whether the assertion is true or false. If true, the program exists quietly. If false, the program issues an error message and exits
Parameters
- assertion in required
A boolean expression believed to be true
- msg in required
An optional string to print when the assertion fails
Author information
- History:
April 2009- Written by Chris Beaumont July 2011- Added msg input. cnb.
File attributes
| Modifcation date: | Fri Jul 1 11:15:57 2011 |
| Lines: | 42 |
![[attach.png]](idldoc-resources/attach.png)