I was informed the if-statement is incorrect. I can't find the syntax error ?
var curDoc = app.activeDocument;
var selall = app.executeMenuCommand("selectall");
var fillrmv = curDoc.pathItems[0].filled = false;
if (app.activeDocument.pathItems[0].filled = true) {
for (i=0;i>fillrmv;i++) {
curDoc.pathItems[0].filled = false;
};
};