# Quicktest refusing to acknowledge a goto

**URL:** <https://forum.choiceofgames.com/t/quicktest-refusing-to-acknowledge-a-goto/34459>\
**Category:** ChoiceScript Help\
**Created:** [January 19, 2018, 6:21am UTC](https://forum.choiceofgames.com/t/quicktest-refusing-to-acknowledge-a-goto/34459 "2018-01-19T06:21:03Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [January 19, 2018, 6:21am UTC](https://forum.choiceofgames.com/t/quicktest-refusing-to-acknowledge-a-goto/34459/1 "2018-01-19T06:21:03Z")

</div>

Alright, the search has not provided results, so…

I’m getting a frustrating quicktest error:

This:

```choicescript
*label cafe_banter2
Are you sure? There's still stuff here to see.
*line_break
*choice
   #I'm sure.
      *if ((apartment_check_count1 !=0) or (apartment_check_up_count1 !=0))
         *goto cafe_banter2_1
      *if ((apartment_check_count1 !=0) or (apartment_check_up_count1 =0))
         *goto cafe_banter2_2
   #Well, on second thought...
      *goto investigatecafe_a1

```

results in quicktest proclaiming:

> QUICKTEST FAILED  
> Error: sub\_cafegarden line 804: It is illegal to fall out of a \*choice statement; you must \*goto or \*finish before the end of the indented block.

Why?!

---

<div class="post-metadata">

**Author:** ![Szaal](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/szaal/32/112202_2.png) [@Szaal](https://forum.choiceofgames.com/u/Szaal)\
**Post date:** [January 19, 2018, 6:23am UTC](https://forum.choiceofgames.com/t/quicktest-refusing-to-acknowledge-a-goto/34459/2 "2018-01-19T06:23:42Z")

</div>

Maybe because the quicktest assumed a situation where both `*if`s are unpassable?

---

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [January 19, 2018, 6:38am UTC](https://forum.choiceofgames.com/t/quicktest-refusing-to-acknowledge-a-goto/34459/3 "2018-01-19T06:38:19Z")

</div>

Tried changing it to this:

```
*label cafe_banter2
Are you sure? There's still stuff here to see.
*line_break
*choice
   #I'm sure.
      *if ((apartment_check_count1 =0) and (apartment_check_up_count1 !=0))
         *goto cafe_banter2_1
      *if ((apartment_check_count1 !=0) and (apartment_check_up_count1 =0))
         *goto cafe_banter2_2
      *if ((apartment_check_count1 !=0) and (apartment_check_up_count1 !=0))
         *goto cafe_banter2_1
      *if ((apartment_check_count1 =0) and (apartment_check_up_count1 =0))
         *goto cafe_banter2_3
   #Well, on second thought...
      *goto investigatecafe_a1

```

with the same result.

This is the code it comes from:

```
   *if (apartment_checked_1 = "false") #I head back to the apartment.
      *if (cafe_checked_1 = "true")
         *goto cafe_banter1
      *if (cafe_checked_1 = "false")
         *goto cafe_banter2

```

---

<div class="post-metadata">

**Author:** ![Carlos.R](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/carlos.r/32/75837_2.png) [@Carlos.R](https://forum.choiceofgames.com/u/Carlos.R)\
**Post date:** [January 19, 2018, 6:39am UTC](https://forum.choiceofgames.com/t/quicktest-refusing-to-acknowledge-a-goto/34459/4 "2018-01-19T06:39:22Z")

</div>

For this section:

> [@MeltingPenguins](#):
>
> \*choice  
> #I’m sure.

Try doing a series of:

```choicescript
*if
*elseif
*(repeat elseif, if necessary, as many times as necessary)
*else

```

---

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [January 19, 2018, 6:41am UTC](https://forum.choiceofgames.com/t/quicktest-refusing-to-acknowledge-a-goto/34459/5 "2018-01-19T06:41:16Z")

</div>

> [@Carlos.R](#):
>
> For this section:
> 
> > [@MeltingPenguins](#):
> >
> > \*choice  
> > #I’m sure.
> 
> Try doing a series of:
> 
> ```choicescript
> *if
> *elseif
> *(repeat elseif, if necessary, as many times as necessary)
> *else
> 
> ```

Nope, same result  
😕

---

<div class="post-metadata">

**Author:** ![Carlos.R](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/carlos.r/32/75837_2.png) [@Carlos.R](https://forum.choiceofgames.com/u/Carlos.R)\
**Post date:** [January 19, 2018, 6:43am UTC](https://forum.choiceofgames.com/t/quicktest-refusing-to-acknowledge-a-goto/34459/6 "2018-01-19T06:43:29Z")

</div>

I mean…

```
*choice
*if ((apartment_check_count1 =0) and (apartment_check_up_count1 !=0))
 #I'm sure.
  *goto cafe_banter2_1
*if ((apartment_check_count1 !=0) and (apartment_check_up_count1 =0))
 #I'm sure.
  *goto cafe_banter2_2
*if ((apartment_check_count1 !=0) and (apartment_check_up_count1 !=0))
 #I'm sure.
  *goto cafe_banter2_1
*if ((apartment_check_count1 =0) and (apartment_check_up_count1 =0))
 #I'm sure.
  *goto cafe_banter2_3

```

---

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [January 19, 2018, 6:45am UTC](https://forum.choiceofgames.com/t/quicktest-refusing-to-acknowledge-a-goto/34459/7 "2018-01-19T06:45:03Z")

</div>

Then it complains that i’m using the choice option already… I know I could just rephrase it…

---

<div class="post-metadata">

**Author:** ![Carlos.R](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/carlos.r/32/75837_2.png) [@Carlos.R](https://forum.choiceofgames.com/u/Carlos.R)\
**Post date:** [January 19, 2018, 6:46am UTC](https://forum.choiceofgames.com/t/quicktest-refusing-to-acknowledge-a-goto/34459/8 "2018-01-19T06:46:56Z")

</div>

Did you copy and paste a choice under your other choice? 😅

---

<div class="post-metadata">

**Author:** ![Fiogan](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/fiogan/32/215832_2.png) [@Fiogan](https://forum.choiceofgames.com/u/Fiogan)\
**Post date:** [January 19, 2018, 6:53am UTC](https://forum.choiceofgames.com/t/quicktest-refusing-to-acknowledge-a-goto/34459/9 "2018-01-19T06:53:54Z")

</div>

Try this?

```

*label cafe_banter2
Are you sure? There's still stuff here to see.
*choice
   #I'm sure.
      *if ((apartment_check_count1 !=0) or (apartment_check_up_count1 !=0))
         *goto cafe_banter2_1
      *else
         *goto cafe_banter2_2
   #Well, on second thought...
      *goto investigatecafe_a1

```

The `*else` tells the autotests there are no other possible conditions…otherwise, due to the way they work, sometimes they have no way of knowing that no other possibilities exist—and then they’ll read an #option with only `*if` statements under it as a bug.

Hence the `*else`, which gives anything not under an `*if` (or `*elseif`) a place to go.

---

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [January 19, 2018, 7:00am UTC](https://forum.choiceofgames.com/t/quicktest-refusing-to-acknowledge-a-goto/34459/10 "2018-01-19T07:00:45Z")

</div>

I went with carlos’. thanks to all.  
gods, this was a pain

---

<div class="post-metadata">

**Author:** ![Havenstone](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/havenstone/32/198451_2.png) [@Havenstone](https://forum.choiceofgames.com/u/Havenstone)\
**Post date:** [January 19, 2018, 8:56am UTC](https://forum.choiceofgames.com/t/quicktest-refusing-to-acknowledge-a-goto/34459/11 "2018-01-19T08:56:51Z")

</div>

Using \*else makes it a lot less painful. Spelling out every single logical option (like Carlos’ second suggestion, that you went with) is cumbersome with two variables and quickly gets impossible…

---

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [January 19, 2018, 9:59am UTC](https://forum.choiceofgames.com/t/quicktest-refusing-to-acknowledge-a-goto/34459/12 "2018-01-19T09:59:53Z")

</div>

Yeah  
But this was they only thing that worked.

---

<div class="post-metadata">

**Author:** ![Eiwynn](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/eiwynn/32/221334_2.png) [@Eiwynn](https://forum.choiceofgames.com/u/Eiwynn)\
**Post date:** [January 19, 2018, 10:16am UTC](https://forum.choiceofgames.com/t/quicktest-refusing-to-acknowledge-a-goto/34459/13 "2018-01-19T10:16:16Z")

</div>

> [@MeltingPenguins](#):
>
> ```choicescript
> *choice
> #I'm sure.
> *if ((apartment_check_count1 =0) and (apartment_check_up_count1 !=0))
> *goto cafe_banter2_1
> *if ((apartment_check_count1 !=0) and (apartment_check_up_count1 =0))
> *goto cafe_banter2_2
> *if ((apartment_check_count1 !=0) and (apartment_check_up_count1 !=0))
> *goto cafe_banter2_1
> *if ((apartment_check_count1 =0) and (apartment_check_up_count1 =0))
> *goto cafe_banter2_3
> #Well, on second thought...
> *goto investigatecafe_a1
> 
> ```

The following doesn’t work?

```choicescript

*choice
   #I'm sure.
      *if ((apartment_check_count1 =0) and (apartment_check_up_count1 !=0))
         *goto cafe_banter2_1
      *elseif ((apartment_check_count1 !=0) and (apartment_check_up_count1 =0))
         *goto cafe_banter2_2
      *elseif ((apartment_check_count1 !=0) and (apartment_check_up_count1 !=0))
         *goto cafe_banter2_1
      *else ((apartment_check_count1 =0) and (apartment_check_up_count1 =0))
         *goto cafe_banter2_3
   #Well, on second thought...
      *goto investigatecafe_a1

```

What error does the else-elseif-else chain give you?

---

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [January 19, 2018, 10:28am UTC](https://forum.choiceofgames.com/t/quicktest-refusing-to-acknowledge-a-goto/34459/14 "2018-01-19T10:28:14Z")

</div>

The same as before. That i am falling out of a choicebody

---

<div class="post-metadata">

**Author:** ![Eiwynn](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/eiwynn/32/221334_2.png) [@Eiwynn](https://forum.choiceofgames.com/u/Eiwynn)\
**Post date:** [January 19, 2018, 10:30am UTC](https://forum.choiceofgames.com/t/quicktest-refusing-to-acknowledge-a-goto/34459/15 "2018-01-19T10:30:23Z")

</div>

Is this choice body embedded?

If so, are the labels embedded as well?

If the labels are embedded, then that is the issue, quicktest has issues with embedded labels, so to get it to pass, push the labels to the primary trunk.

---

<div class="post-metadata">

**Author:** ![Szaal](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/szaal/32/112202_2.png) [@Szaal](https://forum.choiceofgames.com/u/Szaal)\
**Post date:** [January 19, 2018, 10:57am UTC](https://forum.choiceofgames.com/t/quicktest-refusing-to-acknowledge-a-goto/34459/16 "2018-01-19T10:57:37Z")

</div>

> [@Eiwynn](#):
>
> ```choicescript
> *else ((apartment_check_count1 =0) and (apartment_check_up_count1 =0))
> *goto cafe_banter2_3
> 
> ```

Oi, isn’t this will result in an error?  
`*else` doesn’t accept any condition, IIRC.

---

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [January 19, 2018, 11:08am UTC](https://forum.choiceofgames.com/t/quicktest-refusing-to-acknowledge-a-goto/34459/17 "2018-01-19T11:08:51Z")

</div>

Labels arent embedded here.  
It’s really a mess

---

<div class="post-metadata">

**Author:** ![Eiwynn](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/eiwynn/32/221334_2.png) [@Eiwynn](https://forum.choiceofgames.com/u/Eiwynn)\
**Post date:** [January 19, 2018, 11:12am UTC](https://forum.choiceofgames.com/t/quicktest-refusing-to-acknowledge-a-goto/34459/18 "2018-01-19T11:12:27Z")

</div>

> [@MeltingPenguins](#):
>
> Labels arent embedded here.  
> It’s really a mess

ok, first off: @Szaal is correct - remove the conditions from the else statement for it to work.

Secondly - I’ll think on this as I work on my story this morning.

---

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [January 19, 2018, 11:21am UTC](https://forum.choiceofgames.com/t/quicktest-refusing-to-acknowledge-a-goto/34459/19 "2018-01-19T11:21:10Z")

</div>

I could later on scratch the conditions entirely. Problem 2 i have here is that the option wont dissappear when it should.

---

<div class="post-metadata">

**Author:** ![TracyCanfield](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/tracycanfield/32/25657_2.png) [@TracyCanfield](https://forum.choiceofgames.com/u/TracyCanfield)\
**Post date:** [January 19, 2018, 1:48pm UTC](https://forum.choiceofgames.com/t/quicktest-refusing-to-acknowledge-a-goto/34459/20 "2018-01-19T13:48:07Z")

</div>

Others have mentioned using \*elseif, but there’s another possibility I’d suggest: the \*bug statement.

It’s possible to write #options with conditionals that will always be satisfied, and still have Quicktest throw an error because it’s not evaluating those conditionals. The \*bug statement serves two purposes. It satisfies Quicktest, and if you’re wrong and it _is_ possible to get to the end of the #option test without ever hitting a \*goto, Randomtest will display the text from your \*bug statement and you’ll know what went wrong.

This will pass Quicktest. (I like to put the relevant variable names and values in the \*bug statement so I can start my troubleshooting with “How did those variables end up with weird values?”)

```
*choice
   #I'm sure.
      *if ((apartment_check_count1 !=0) or (apartment_check_up_count1 !=0))
         *goto cafe_banter2_1
      *if ((apartment_check_count1 !=0) or (apartment_check_up_count1 =0))
         *goto cafe_banter2_2
      *bug Invalid combination of apartment_check_count and apartment_check_up_count1: ${apartment_check_count}, ${apartment_check_up_count1}
   #Well, on second thought...
      *goto investigatecafe_a1

```

[Next page](https://forum.choiceofgames.com/t/quicktest-refusing-to-acknowledge-a-goto/34459.md?page=2)
