Skip to Main Content
AVEVA Product Feedback


Status Completed
Created by Guest
Created on Aug 20, 2022

Conditional Exit for Analysis Expressions

Sometime you want to do an analyse only when one or more conditions are true, if the are not true you want to exit the analyse, so steps below the conditional exit are not evaluated/executed. The conditional in Analytics should look like:   if condition = true then exit analyse   At the moment this is only possible with the function NoOutput(), but then the mapped attribute should be connected to an PIPoint and you have to fill in a else condition. All rows below the conditional exit will not be executed.
  • ADMIN RESPONSE
    Aug 20, 2022
    New function - Exit() is now available with the AF 2018 SP2 release.
  • Attach files
  • Guest
    Reply
    |
    Aug 20, 2022
    Would also be nice to have a similar (optional) feature in event frame generation: Add the possibility to stop triggering other start triggers after triggering on the first true trigger expression. Optionally prevent only same or lower priority triggers.
  • Guest
    Reply
    |
    Aug 20, 2022
    To work around this, save the result of the condition evaluation to a variable. Then wrap the formula of each subsequent variable in "if condition then formula else NoOutput()".
  • Guest
    Reply
    |
    Aug 20, 2022
    Very cool!