If the interval is other than sec/min/hour, I would like to solve following, how do I achieve it?
ninterval=getInterval();
xinterval=8*ninterval; <-----------------------this works for sec/min/h
if (ninterval="D" ) {xinterval="W"}; <-----------------------this does not work
if (ninterval="W" ) {xinterval="M"}; <-----------------------this does not work
if (ninterval="M" ) {xinterval="Y"}; <-----------------------this does not work
Can some one modify to make it work?
Thanx.
ninterval=getInterval();
xinterval=8*ninterval; <-----------------------this works for sec/min/h
if (ninterval="D" ) {xinterval="W"}; <-----------------------this does not work
if (ninterval="W" ) {xinterval="M"}; <-----------------------this does not work
if (ninterval="M" ) {xinterval="Y"}; <-----------------------this does not work
Can some one modify to make it work?
Thanx.
Comment