Reply To: IF Statement

Optuma Forums Optuma Scripting IF Statement Reply To: IF Statement

#60299
MathewMathew
  • Topics: 29
  • Replies: 1,472
  • Posts: 1,501

Hi Thomas,

It’s a little hard without all the information on the other plot. You are comparing this to a plot which we do not have the script for so we can not see why one would be going negative and the other not. Unless I am not understanding why you are highlighting the two plots.

One thing I did notice is that both your and Trevor’s scripts will go to 0. The issue is that a nested IF gives you three states but you only want two. Also you have “>=” for both tests in your if statements.

Using a switch is a much better way to achieve what you are looking for and using a crosses is also better as we want a “switch” condition rather than a “state” condition.

All the best

Mathew

  • This reply was modified 1 week, 3 days ago by MathewMathew. Reason: Changed to crosses

Pin It on Pinterest

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close