Skip to Main Content
AVEVA Product Feedback


Status No status
Created by Guest
Created on Oct 30, 2024

if then else in Analysis still checking/executing both parts

If then else clauses are often used for input filtering for our analysis in AF. We often face the issue that analysis cause errors although the part which should not be executed according to the condition is causing errors.
Example:

"if BadVal('attribute') then '' else TagEU('attribute')" is giving still errros when the attribute is excluded.

  • Attach files
  • Guest
    Reply
    |
    Nov 13, 2024

    It also doesn't matter what order you your check it, it still doesn't work. For example, the below both fail
    If '..\|NumberOfCommunications' < 2 Then "N/A" Else '..\COM2|State'
    If '..\|NumberOfCommunications' = 2 Then '..\COM2|State' Else "N/A"