koden Posted November 30, 2006 Report Share Posted November 30, 2006 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 Quote Link to comment Share on other sites More sharing options...
joe Posted December 7, 2006 Report Share Posted December 7, 2006 Cannot read your file. See this thread: Uploading files In the mean time, it sounds like you need to use the Else command as in: If this is true Do this Else Do this instead End If Quote Link to comment Share on other sites More sharing options...
Strathos Posted December 7, 2006 Report Share Posted December 7, 2006 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.