Chris Beaumont's IDL Library

Download source code

single page | use frames     summary     class     fields     routine details     file attributes




assert, assertion, msg

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


assertion in required

A boolean expression believed to be true

msg in required

An optional string to print when the assertion fails

Author information


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