Lonkero,

I tried your solution and still get the same result: "It works!" is the reply I get whether it value is true or not. I tried 1, 0, yes and it was all the same result. I also subbed the @scriptdir with the same results.

SeaLeopard,

I tried your solution and the value = it works!

$a=READPROFILESTRING(@ldrive+'\uk-scripts\exclude.ini','Exclude',@WKSTA)
IF @ERROR
? 'Error encountered : '+@ERROR+' - '+@SERROR
ELSE
? 'Value = '+$a
ENDIF
IF VAL($a)=1
EXIT 0
ELSE
"It works!"
ENDIF