Rocco,
Welcome to the board. You know, this is a very frequently asked question. You'd think someone would have the answer in the FAQ section. [Wink]

All KiX functions return results. You can either wrap them in IF statements, or assign then to a variable.

$RC = SetConsole ("ALWAYSONTOP")
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.