Hi bro,
I believe this is what you looking for. I used to had the same problem as you but thank to Adobe help now it’s gone.
https://help.adobe.com/en_US/AfterEffects/9.0/WS22BD9B45-A813-4b13-996D-A4561D108A8Ca.html
Have a nice day
timeToStart = 2; [second]
timeToStop = 4; [second]
if ((time > timeToStart) && (time < timeToStop)){
wiggle(3,25);
}else{
value;
}