Jump to content
Macro Express Forums



Recommended Posts



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.




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)


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

Link to comment
Share on other sites

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"


If Variable %T2% = "a"

Text Box Display: True


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.

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.

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.

  • Create New...