# Skipping lines on quicktest

**URL:** <https://forum.choiceofgames.com/t/skipping-lines-on-quicktest/148816>\
**Category:** Game Development\
**Created:** [February 5, 2024, 5:50am UTC](https://forum.choiceofgames.com/t/skipping-lines-on-quicktest/148816 "2024-02-05T05:50:02Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jacic](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/jacic/32/7061_2.png) [@Jacic](https://forum.choiceofgames.com/u/Jacic)\
**Post date:** [February 5, 2024, 5:50am UTC](https://forum.choiceofgames.com/t/skipping-lines-on-quicktest/148816/1 "2024-02-05T05:50:03Z")

</div>

Does anyone know how to get quicktest to ignore a line?

```choicescript
I've tried:
*if (choice_quicktest)
	*goto skipnext

```

And:

```choicescript
*if not(choice_quicktest)
   lines I want it to ignore here.

```

But neither seem to work.

---

<div class="post-metadata">

**Author:** ![malinryden](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/malinryden/32/272913_2.png) [@malinryden](https://forum.choiceofgames.com/u/malinryden)\
**Post date:** [February 5, 2024, 6:45am UTC](https://forum.choiceofgames.com/t/skipping-lines-on-quicktest/148816/2 "2024-02-05T06:45:21Z")

</div>

Huh. This is what I use:

```choicescript
*if ((choice_quicktest) or (choice_randomtest))
    *goto xxx

```

I have never had any issues with it?

---

<div class="post-metadata">

**Author:** ![adrao](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/adrao/32/9289_2.png) [@adrao](https://forum.choiceofgames.com/u/adrao)\
**Post date:** [February 5, 2024, 7:15am UTC](https://forum.choiceofgames.com/t/skipping-lines-on-quicktest/148816/3 "2024-02-05T07:15:39Z")

</div>

I tried that (see below), but it doesn’t fully appear to work?

\*if ((choice\_quicktest) or (choice\_randomtest))

\*goto check\_playtesting\_game

\*else  
\*sm\_init lich | 4

```
*goto check_playtesting_game

```

\*label check\_playtesting\_game

But I get (using CSIDE)

QUICKTEST FAILED  
Error: startup line 1424: Non-existent command ‘sm\_init’

---

<div class="post-metadata">

**Author:** ![will](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/will/32/132033_2.png) [@will](https://forum.choiceofgames.com/u/will)\
**Post date:** [February 5, 2024, 7:20am UTC](https://forum.choiceofgames.com/t/skipping-lines-on-quicktest/148816/4 "2024-02-05T07:20:41Z")

</div>

Yep, ran into this problem with `*sm_init` too, as well as for running parameters (it tries to run the parameter code on its own without being called by a `*gosub` function, so the parameters have no values).

I get around it with brute force. I use `*comment` liberally and just put reminders of what needs to be commented out and what needs to be naked code under what circumstances.

---

<div class="post-metadata">

**Author:** ![malinryden](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/malinryden/32/272913_2.png) [@malinryden](https://forum.choiceofgames.com/u/malinryden)\
**Post date:** [February 5, 2024, 8:15am UTC](https://forum.choiceofgames.com/t/skipping-lines-on-quicktest/148816/5 "2024-02-05T08:15:27Z")

</div>

> [@adrao](#):
>
> Error: startup line 1424: Non-existent command ‘sm\_init’

Oh that is sm\_init messing things up. I haven’t been able to make the testing ignore that, I have to add \*comment in front of it every time I test. Sadly, it is not ignorable as long as it is the code, even if you tell it to bypass.

---

<div class="post-metadata">

**Author:** ![adrao](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/adrao/32/9289_2.png) [@adrao](https://forum.choiceofgames.com/u/adrao)\
**Post date:** [February 5, 2024, 8:44am UTC](https://forum.choiceofgames.com/t/skipping-lines-on-quicktest/148816/6 "2024-02-05T08:44:09Z")

</div>

Yep, same here. I also just do a \*comment every time…

Oh well, just wanted to see if there was a way…

---

<div class="post-metadata">

**Author:** ![Jacic](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/jacic/32/7061_2.png) [@Jacic](https://forum.choiceofgames.com/u/Jacic)\
**Post date:** [February 5, 2024, 10:00am UTC](https://forum.choiceofgames.com/t/skipping-lines-on-quicktest/148816/7 "2024-02-05T10:00:57Z")

</div>

Yeah I was trying to get it to ignore the plugin as I thought it should be possible but seems not. Looks like I keep using the comment method 🙂

---

<div class="post-metadata">

**Author:** ![cup\_half\_empty](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cup_half_empty/32/273983_2.png) [@cup\_half\_empty](https://forum.choiceofgames.com/u/cup_half_empty)\
**Post date:** [February 5, 2024, 10:09am UTC](https://forum.choiceofgames.com/t/skipping-lines-on-quicktest/148816/8 "2024-02-05T10:09:52Z")

</div>

Quick test, as opposed to random test, executes every line of the code, so there isn’t a way to skip lines. You have to comment them out. That’s a known inconvenience of the method.

---

<div class="post-metadata">

**Author:** ![CJW](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cjw/32/111787_2.png) [@CJW](https://forum.choiceofgames.com/u/CJW)\
**Post date:** [February 5, 2024, 12:55pm UTC](https://forum.choiceofgames.com/t/skipping-lines-on-quicktest/148816/9 "2024-02-05T12:55:19Z")

</div>

As cup suggests, Quicktest analyses every line code (it doesn’t really execute your game in a traditional manner), so it will always complain about the sm commands, even if guarded. I believe the choice\_quicktest guard is only useful for some conditional execution (e.g. to set a specific test-only variable value). Or another way to think about it is that anything guarded by choice\_quicktest won’t happen when you’re _playing_ your game.
