I have the following code that runs a simple function. What I'd like to have it do is, if function generates an error, set qual_1 to 0. Right now, it sets qual_1 to equal 0 no matter whether TF1 generates an error or not. Where's my mistake here?
Please Login or Register to view this content.
PS: TF1 can generate many types of errors, including TF1 = var1 / 0, TF1 = var1 / "AA", etc. so I'd like the error catcher to be able to detect any type of them and set qual_1 to 0.
Bookmarks