Jump to content
Macro Express Forums

What Will This If Statement Do?


koden
 Share

Recommended Posts

Sorry...but I'm not so good to this IF.

 

My IF statement look like this:

 

If variable T9 contains variable T5

AND

If variable T9 contains variable T6

OR

If variable T8 contains Restart

 

Then delete mail

End IF

 

I surpose that the email will be deleted if T5 and T6 both are present in T9.

If this is not true it will test if T8 contains restart.

IF it does the email will be deleted

If not it will end and go on with the rest of the macro.

 

Is that right??

 

And I also has a problem:

 

T8 contains: 1 Tryg OPC Job Error

 

I have an IF statement that says that

If T8 does not contain: Tryg OPC

Then archive the mail in X folder.

 

But even if T8 contains Tryg OPC, it sometimes archive mail in X and sometimes not.

Can this be a timing problem in my IF statement???

Link to comment
Share on other sites

Your First IF statement looks correct to me.

 

For your archive question... I would check to see if text case is an issue. In your command "If T8 does not contain: Tryg OPC"... I would check the "Ignore Case". Timing should not be an issue when dealing with "IF" statements. If variable does not contain that text... it should not even go on with that statement.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...