exists() doesn't return a true / false booleanShow the result of:
text exists("%SystemRoot%");And btw the short form of your script is:
Code: Select all
$app = "%SYSTEMDRIVE%\Program Files\WinDirStat\WinDirStat.exe";
$target = (exists(<curitem>) == 2) ? <curitem> : <curpath>;
run """$app"" ""$target""";
XYplorer Beta Club