Prevent code from running in a live channel

Verified
Added by iNTERFACEWARE

Use iguana.isTest() to allow code to run in the editor but not in the live channel

Source Code
   -- allow code to run in the editor but not in live 
   if iguana.isTest() then
      -- place code here that you do not want to run in the live channel
   end
Description
Use iguana.isTest() to allow code to run in the editor but not in the live channel
Usage Details

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

How to use the snippet:

  • Paste the desired code into your script