Hey Dan love the use of Boolean operators. Used them extensively in the old mainframe days when storage was measured in megabytes. When working with 16mb system storage every byte counted. Here's an old trick to save bytes a *-6, ctr. Used this in 360/370 mainframes since adding the opcode (numeric value of 1) would save 1 byte. nice chatting with a knowledgeable tech
M
Member 11594914
@Member 11594914
Posts
-
Switch boolean.... (reinventing if, unnecessarily) -
Switch boolean.... (reinventing if, unnecessarily)Look. this construct is a perfect alternating on/off switch. I've used it exclusively over past 10 years. There is no valid reason not to use it, especially if you favor Clean, concise, easy to understand code. Different strokes ... Tony d
-
Switch boolean.... (reinventing if, unnecessarily)This works for me FirstControl.Enabled = SecondControl.Enabled = (enabled) ? false : true;