Dear,The script with the additional or did exactly what it has to do.
code:
IF condition1 OR condition2 OR condition3
setdefaultprinter(....)
ENDIF
can also be written as:
code:
IF condition1 OR
condition2 OR
condition3
setdefaultprinter(.....)
ENDIF
The condition3 is your addprinterconnection statement and it will
always be executed. Only the result of those three conditions will influence
the execution of your setdefaultprinter statement.
In many scripts you find code like:
code:
IF (AddPrinterConnection("\\domain\printer1") <> 0)
? "Warning KIX: @error (@serror)"
ENDIF
not only to show an error status but also to prevent error codes (= mostly 0's)
on your screen.In other language f.e. pascal the IF/ENDIF structure knows a keyword then.
but this language doesn't have a clear endif statement.
So there is no bug in kixtart.
Greetings.