IF… OR IF… in a windows batch file
The zmbq solution is good, but cannot be used in all situations, such as inside a block of code like a FOR DO(…) loop. An alternative is to use an indicator variable. Initialize it to be undefined, and then define it only if any one of the OR conditions is true. Then use IF DEFINED … Read more