Skip to main content
added 2 characters in body
Source Link
Adobe
  • 215
  • 3
  • 10

I put conditional code in a delayed Block, and added a toggler which defines wither that block is to be run on "Evaluate Notebook" or not:

enter image description here

(the point of first two lines here is to make the notebook yield exactly same results upon multiple runs of "Evaluate Notebook")

If you'd rather use global variables in your conditional blockBlock use:

testX := Block[{},
   x
   ];

I put conditional code in a delayed Block, and added a toggler which defines wither that block is to be run on "Evaluate Notebook" or not:

enter image description here

(the point of first two lines here is to make the notebook yield exactly same results upon multiple runs of "Evaluate Notebook")

If you'd rather use global variables in your conditional block use:

testX := Block[{},
   x
   ];

I put conditional code in a delayed Block, and added a toggler which defines wither that block is to be run on "Evaluate Notebook" or not:

enter image description here

(the point of first two lines here is to make the notebook yield exactly same results upon multiple runs of "Evaluate Notebook")

If you'd rather use global variables in your conditional Block use:

testX := Block[{},
   x
   ];
added 1 character in body
Source Link
Adobe
  • 215
  • 3
  • 10

I put conditional code in a delayed Block, and added a toggler which defines wither that block is to be run on "Evaluate Notebook" or not:

enter image description hereenter image description here

(the point of first two lines here is to make the notebook yield exactly same results upon multiple runs of "Evaluate Notebook")

If you'd rather use global variables in your conditional block use:

testX := Block[{},
   x
   ];

I put conditional code in a Block, and added a toggler which defines wither that block is to be run on "Evaluate Notebook" or not:

enter image description here

(the point of first two lines here is to make the notebook yield exactly same results upon multiple runs of "Evaluate Notebook")

If you'd rather use global variables in your conditional block use:

testX = Block[{},
   x
   ];

I put conditional code in a delayed Block, and added a toggler which defines wither that block is to be run on "Evaluate Notebook" or not:

enter image description here

(the point of first two lines here is to make the notebook yield exactly same results upon multiple runs of "Evaluate Notebook")

If you'd rather use global variables in your conditional block use:

testX := Block[{},
   x
   ];
added 115 characters in body
Source Link
Adobe
  • 215
  • 3
  • 10

I put conditional code in a Block, and added a toggler which defines wither that block is to be run on "Evaluate Notebook" or not:

enter image description here

(the point of first two lines here is to make the notebook yield exactly same results upon multiple runs of "Evaluate Notebook")

If you'd rather use global variables in your conditional block use:

testX = Block[{},
   x
   ];

I put conditional code in a Block, and added a toggler which defines wither that block is to be run on "Evaluate Notebook" or not:

enter image description here

I put conditional code in a Block, and added a toggler which defines wither that block is to be run on "Evaluate Notebook" or not:

enter image description here

(the point of first two lines here is to make the notebook yield exactly same results upon multiple runs of "Evaluate Notebook")

If you'd rather use global variables in your conditional block use:

testX = Block[{},
   x
   ];
Source Link
Adobe
  • 215
  • 3
  • 10
Loading