void delay() throws ScriptException {
		long millis = 0;
		// token has ondefault1
		Token token = statement[1];
		switch (token.tok) {
		case Token.integer:
		case Token.on: // this is auto-provided as a default
			millis = token.intValue * 1000;
			break;
		case Token.decimal:
			millis = (long) (((Float) token.value).floatValue() * 1000);
			break;
		default:
			numberExpected();
		}
		delay(millis);
	}