Re: "Skip this Input cell" module?

*To*: mathgroup at smc.vnet.net*Subject*: [mg68860] Re: "Skip this Input cell" module?*From*: AES <siegman at stanford.edu>*Date*: Mon, 21 Aug 2006 03:28:28 -0400 (EDT)*Organization*: Stanford University*Sender*: owner-wri-mathgroup at wolfram.com

Suppose at the start of a notebook one defines two functions doCell[expr_] = expr ; skipCell[expr_] = Null ; (or maybe skipCell[expr_] = Print["Input skipped"] ) that are intended to be wrapped around the full contents of certain Input cells in order to temporarily allow or suppress execution of those particular Input cells. Assuming the Input cells always contain a proper sequence of executable expressions, will these definitions have any hidden "gotchas"? Would they be better defined with = or := ? (or as Modules?) Should the argument be [expr_] or [expr_Expression]? (Is Expression a Head? The Mathematica Book doesn't seem to be totally clear about this.) Any other hidden gotchas if one defines instead doCell[test_, expr_] = If[test, expr, Print["input skipped"]]; Thanks for advice and counsel.

**Follow-Ups**:**Re: Re: "Skip this Input cell" module?***From:*"Chris Chiasson" <chris@chiasson.name>

**Re: Re: "Skip this Input cell" module?***From:*"Chris Chiasson" <chris@chiasson.name>