Reply To: Switch and Timesincesignal

Optuma Forums Optuma Scripting Switch and Timesincesignal Reply To: Switch and Timesincesignal

#59681
DarrenDarren
  • Topics: 55
  • Replies: 463
  • Posts: 518

Hi Jamie,

When looking for equality between variables you need to use ‘==’ in the formula, so use this in the IF statement:

IF(V3==V1,1,0)

Regarding the TIMESINCESIGNAL, if you are trying to count how long it has been since it’s been above 60 you will need to look at it from the point of view of when it was last above 60 (not when it crossed above). Likewise, since it’s been below 40:

Finally, when posting formulas please use the <>Code button in the format bar which removes all formatting when copying and pasting in to Optuma. See this pinned post for instructions:

How to Add Code to Forum Posts

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