Conditional assertion inside a module scope

In reply to dave_59:

Thanks Dave. This will pretty much work for me.