The use of a If sentence
I have a question regarding the use of if sentences in Quality Center.
In Sub Test_new I have the following script:
If Test_Fields("TS_STATUS").value = "" and_
Test_Fields("TS_USER_01").value = "" and_
And in the Sub Bug_New I have the following script:
If not Bug_Fields("BG_USER_02").value = "" and_
not Bug_Fields("BG_USER_08").value = "" and_
As I see it, these scripts inserts default values into respectively a new testplan and a new defect - although they are not alike? I have tried to use the "if not" in the sub Test_New, but it did not work?
Can anyone tell me why? I am curious.