Comment
Sai136
Kilo Expert

Hi floks i have one date filed - current date should grater than 50 days then task should be create , i wrote scripit but condition satisfy also it is always taking return no 

answer = ifScript();

function ifScript() {
var ar = new GlideDateTime(current.variables.variable name.toString());

var ar1 = new GlideDateTime();

var zdays = ar1.addDays(50);
if (ar > zdays) {
return 'yes';
} else {
return 'no';
}

}