[Má...] Posted January 16 Share Posted January 16 (edited) Hello, I would like to create a user defined check. I would like to get the maximum from different lenght dimensions (e.g.: A,B,C,D actual value), but only take the value into account if the dimension is within 40 mm. How can I create such conditional entries? I guess I should combine it with if statement. Best regards, Máté Tömöri Edited January 16 attached picture Link to comment Share on other sites More sharing options...
[TI...] Posted January 19 Share Posted January 19 That is easy to do, but you did not define what you want the output to be if the condition is not met? Define what should happen in all possible conditions. Link to comment Share on other sites More sharing options...
[Má...] Posted January 19 Author Share Posted January 19 I would like it to ignore the given value if it does not meet the specified condition. Link to comment Share on other sites More sharing options...
[TI...] Posted January 19 Share Posted January 19 You have 36mm +-1mm in the user defined check, so I don't understand what you are trying to accomplish. You need to pass some value along regardless, but here is an idea: x = max(A.actual_value, B.actual_value) if max(A.actual_value, B.actual_value) < 35: x = 0 x 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in