XAntares Posted August 25, 2010 Report Share Posted August 25, 2010 Hello, What exaclty means command xor ? I will used it to copy a file from one folder in another folder. If file with date-k exist this file should be copy to destination folder If file not exist file date should be copy to destination folder. example Place in variable T1=Day of Week 3, T7=date (dd.MM.yyyy): if Variable %T1% does not contain Monday if file exist c:\file_%T7%-k.xls copy file_%T7%-k.xls new file D:\.... (destination folder) else copy C:\file_%T7%.xls new file D:\..... (destination folder) end if end if is it possible to change the two if-commands with XOR ? Greetings XAntares Quote Link to comment Share on other sites More sharing options...
rberq Posted August 25, 2010 Report Share Posted August 25, 2010 XOR is the "exclusive OR", meaning one of the two conditions tested is true, but both conditions are not true. For example, the macro below will display the "False" text box. If you change one of the two Variable Set String commands, then it will display "True". Variable Set String %T1% "a" Variable Set String %T2% "a" // If Variable %T1% = "a" XOR If Variable %T2% = "a" Text Box Display: True Else Text Box Display: False End If Your macro as written is straight-forward and easy to understand. I don't think it can be changed to use XOR. And if you could, I don't think it would be easy to understand. 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.