if ($timer_test.type == online) { .timer_test off .timer_test 0 $rand(120,360) STUFF } else { .timer_test 0 $rand(120,360) STUFF }