ANDs and ORs

Logical ANDing and ORing are also available as binary operators.

Q: version of regapp "wordpad.exe" as string = "5.1.2600.2180" and name of operating 
system = "WinXP"
A: True

Returns TRUE only if both equations are true (AND expression).

Q: name of operating system = "WinNT" or name of operating system = "WinXP"
A: True

Returns TRUE if one OR the other equation is true. You can also logically negate a boolean expression with the ‘not’ keyword.

Q: not exists drive "z:"
A: True

Returns True is the z: drive doesn’t exist. This is a unary operation (not) being used to negate another unary operator (exists).

Using existence with boolean logic even lets you check for things that might otherwise return an error:

Q: Exists folder "C:\doesn't exist" AND Exists files "this should normally break" 
of folder "c:\doesn't exist"
A: False