Just as EXIT behaves different in a CALLed script than an INCLUDEd script, so too with var scope.

Test.kix Code:
break on
dim $var
$var = 'test'
'in test - before call - '+ $var ?
call 'test2.kix'
'in test - after call - '+ $var ?
include 'test2.kix'
'in test - after include - '+ $var ?



Test2.kix Code:
break on
$var = "test2"
'in test2 - ' + $var ?



Results:
in test - before call - test
in test2 - test2
in test - after call - test
in test2 - test2
in test - after include - test2

C:\KiXScripts>
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.