Jump to content
Macro Express Forums

Help To This If Macro


koden
 Share

Recommended Posts

Hello....

 

I use this attached IF macro in my Macro.

 

As you can see there is a lot of IF commands.

 

It runs okay and with no problem.

 

BUT when T3 contains something thats not in one of the if commands it stops.

 

can I but in a if command that does this:

 

IF T3 contains anything else then text type XXXXXXXXX

 

 

Thanks

carsten

IF_macro.mex

Link to comment
Share on other sites

Hello

 

I think you would need to use Switches and Cases. Here it is an example:

 

Switch (T3)

// Cases are like "If Variable = X

Case: ADABAS

Delay 200 Milliseconds

Text Type: CSC.CPH.GPES.DBA.ADABAS

End Case

Case: 8781

Delay 200 Milliseconds

Text Type: CSC.Cph.Ops.Data.Tsmd

End Case

// If any of the others:

Default Case

Delay 200 Milliseconds

Text Type: XXXXXXXXX

End Case

End Switch

 

If T3 it is only contains the triggering text (eg: T3 = "abcText ADABAS") you could try something like this:

 

Variable Set Integer %N1% to 0

If Variable %T3% contains "ADABAS"

Delay 200 Milliseconds

Text Type: CSC.CPH.GPES.DBA.ADABAS

Variable Set Integer %N1% to 1

End If

If Variable %N1% = 0

Delay 200 Milliseconds

Text Type: XXXXXXXXX

End If

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...