If I were to perform a logical "OR" comparison of two items, KiXtart seem to evaluation both sides of the "OR" before making the comparision.

If either the current "OR" could be altered or a new "shotcut OR" could be introduced we could


use the OR for flow control.

Code:

function A($)
Do something...
$A=@error
Exit @error
Endfunction


A(2)=0 or RaiseError("A(2) Failed: " + @serror)

_________________________
Home page: http://www.kixhelp.com/hb/