Prevent code from running in the editor

Verified
Added by iNTERFACEWARE

Use iguana.isTest() to prevent code from running in the editor

Source Code
   -- prevent the enclosed code from running in the editor
   if not iguana.isTest() then
      -- place code here that you do not want to run
   end

   -- prevent any code after this point from running in the editor
   if iguana.isTest() then return end
Description
Use iguana.isTest() to prevent code from running in the editor
Usage Details

Use iguana.isTest() to test when code is running in the editor (test mode). This can be used to prevent live code (for example database updates) from running in the editor.

How to use the snippet:

  • Paste the desired code into your script