Having Code Run based on an IF Statem

Hi everyone, I am trying to set up sections of code that will only run if the user wanted them too. I am trying to set up an IF block that runs off a simple boolean block and then runs all the code after it if true, or just runs nothing if false. Here is a sample of what I am talking about but it doesn’t really do much to illustrate what I am talking about.if_statement

You need to pass something if the test is false.
Try passing a null. You will get a warning but that should do the trick.

If you want to avoid warnings, try this instead:
If-Then/Run Tools

1 Like