Can't get *if statement to hide/reveal the associated #choice

It’s telling me there’s an invalid indent and a few other errors since I changed the code to try and get it to function properly.

My code looks like this:

*fake_choice
*hide_reuse #I'll go and meet Anja. She has to be on the ship somewhere.
*set count +1
*goto AnjaMeeting
*if (GeneSwap <= 3) and (GeneSwapped = 0) #I'll go and get the gene modifications I was promised. This should be fun.
*set Count +1
*goto GeneTime
*if (GeneSwap > 3)
*hide_reuse #I'd go to get modifications I spoke of with Dubon, but that technology is inherently evil.
You spend a few minutes trying to comprehend why anyone would get those sorts of modifications to themselves when their bodies were already made perfect, or at least perfect enough, by evolution. For a little while, you entertain the idea of sabotaging that machinery onboard... but quickly come to the realization that the act would be found rapidly by any crew member wandering into the area, cameras that track entry and exit, and any other numerous security systems onboard this starship. As fun as it might be to destroy the equipment, you'd be caught and likely face criminal charges almost immediately or at the very least be fired and have to pay a lot of money you don't have.
*set count +1
*goto FirstDay
*hide_reuse #I should go have a conversation with Miller.
*set count +1
*goto MillerConvo
*hide_reuse #Clark said I could come and see him later. I'll do so.
*set count +1
*goto ClarkConvo
*hide_reuse #The Nisai 'sisters' are quite the pair. I'll go get to know them.
*set count +1
*goto Sisters
*if (count = 5)
#I should get on with my training; reading the handbook and doing the modules in the company portal before going to bed.
*goto bed

I also had the code this way before: 

*fake_choice
  *hide_reuse #I'll go and meet Anja. She has to be on the ship somewhere. 
    *set count +1
    *goto AnjaMeeting
  *if (GeneSwap <= 3)
    #I'll go and get the gene modifications I was promised. This should be fun. 
      *set Count +1
      *goto GeneTime
  *if (GeneSwap > 3)
    *hide_reuse #I'd go to get modifications I spoke of with Dubon, but that technology is inherently evil. 
      You spend a few minutes trying to comprehend why anyone would get those sorts of modifications to themselves when their bodies were already made perfect, or at least perfect enough, by evolution. For a little while, you entertain the idea of sabotaging that machinery onboard... but quickly come to the realization that the act would be found rapidly by any crew member wandering into the area, cameras that track entry and exit, and any other numerous security systems onboard this starship. As fun as it might be to destroy the equipment, you'd be caught and likely face criminal charges almost immediately or at the very least be fired and have to pay a lot of money you don't have. 
      *set count +1
      *goto FirstDay
  *hide_reuse #I should go have a conversation with Miller. 
    *set count +1
    *goto MillerConvo
  *hide_reuse #Clark said I could come and see him later. I'll do so. 
    *set count +1
    *goto ClarkConvo
  *hide_reuse #The Nisai 'sisters' are quite the pair. I'll go get to know them. 
    *set count +1
    *goto Sisters
  *if (count = 5)
  #I should get on with my training; reading the handbook and doing the modules in the company portal before going to bed. 
    *goto bed

And also tried this:

*fake_choice
  *hide_reuse #I'll go and meet Anja. She has to be on the ship somewhere. 
    *set count +1
    *goto AnjaMeeting
  *if (GeneSwap <= 3) #I'll go and get the gene modifications I was promised. This should be fun. 
      *set Count +1
      *goto GeneTime
  *if (GeneSwap > 3)
    *hide_reuse #I'd go to get modifications I spoke of with Dubon, but that technology is inherently evil. 
      You spend a few minutes trying to comprehend why anyone would get those sorts of modifications to themselves when their bodies were already made perfect, or at least perfect enough, by evolution. For a little while, you entertain the idea of sabotaging that machinery onboard... but quickly come to the realization that the act would be found rapidly by any crew member wandering into the area, cameras that track entry and exit, and any other numerous security systems onboard this starship. As fun as it might be to destroy the equipment, you'd be caught and likely face criminal charges almost immediately or at the very least be fired and have to pay a lot of money you don't have. 
      *set count +1
      *goto FirstDay
  *hide_reuse #I should go have a conversation with Miller. 
    *set count +1
    *goto MillerConvo
  *hide_reuse #Clark said I could come and see him later. I'll do so. 
    *set count +1
    *goto ClarkConvo
  *hide_reuse #The Nisai 'sisters' are quite the pair. I'll go get to know them. 
    *set count +1
    *goto Sisters
  *if (count = 5)
  #I should get on with my training; reading the handbook and doing the modules in the company portal before going to bed. 
    *goto bed

I’m not sure why it’s making this error. I checked the choicescript wiki and it says this:

*choice

  *if not(var) #This option to be displayed

    *goto next

In order to work correctly, that code should actually be written as:

*choice

  *if not(var)

    #This option to be displayed

      *goto next

Another solution is to enclose the ‘not’ in another set of parentheses, like so:

On this page:

If | ChoiceScript Wiki | Fandom

Hmm. If count equals 5 seems to not have the choice indented.

I added the code with the indent and it runs without error. I’m not able to generate any errors. What were the specific errors? Here’s what I used:

*temp GeneSwap 0
*temp count 0



*fake_choice
  *hide_reuse #I'll go and meet Anja. She has to be on the ship somewhere. 
    *set count +1
    *goto AnjaMeeting
  *if (GeneSwap <= 3) #I'll go and get the gene modifications I was promised. This should be fun. 
      *set Count +1
      *goto GeneTime
  *if (GeneSwap > 3)
    *hide_reuse #I'd go to get modifications I spoke of with Dubon, but that technology is inherently evil. 
      You spend a few minutes trying to comprehend why anyone would get those sorts of modifications to themselves when their bodies were already made perfect, or at least perfect enough, by evolution. For a little while, you entertain the idea of sabotaging that machinery onboard... but quickly come to the realization that the act would be found rapidly by any crew member wandering into the area, cameras that track entry and exit, and any other numerous security systems onboard this starship. As fun as it might be to destroy the equipment, you'd be caught and likely face criminal charges almost immediately or at the very least be fired and have to pay a lot of money you don't have. 
      *set count +1
      *goto FirstDay
  *hide_reuse #I should go have a conversation with Miller. 
    *set count +1
    *goto MillerConvo
  *hide_reuse #Clark said I could come and see him later. I'll do so. 
    *set count +1
    *goto ClarkConvo
  *hide_reuse #The Nisai 'sisters' are quite the pair. I'll go get to know them. 
    *set count +1
    *goto Sisters
  *if (count = 5)
    #I should get on with my training; reading the handbook and doing the modules in the company portal before going to bed. 
    *goto bed


*label bed

*label GeneTime

*label Sisters

*label ClarkConvo

*label MillerConvo

*label FirstDay


*label AnjaMeeting


*page_break 
*finish

I’ll give it a shot. For some reason it was throwing an error about the GeneSwap choice

Edit:

Sorry, I replied right as you edited. GeneSwap is a permanent variable since it will have repercussions later in the story.

I missed the spacing in the Count variable. I’ll get to checking it immediately.

I was able to get the GeneSwap choice to swap without any errors.

I used this code, but there’s also another way to code this:

*set implicit_control_flow true

*temp GeneSwap 4
*temp count 0



*fake_choice
  *hide_reuse #I'll go and meet Anja. She has to be on the ship somewhere. 
    *set count +1
    *goto AnjaMeeting
  *if (GeneSwap <= 3) #I'll go and get the gene modifications I was promised. This should be fun. 
      *set Count +1
      *goto GeneTime
  *if (GeneSwap > 3)
    *hide_reuse #I'd go to get modifications I spoke of with Dubon, but that technology is inherently evil. 
      You spend a few minutes trying to comprehend why anyone would get those sorts of modifications to themselves when their bodies were already made perfect, or at least perfect enough, by evolution. For a little while, you entertain the idea of sabotaging that machinery onboard... but quickly come to the realization that the act would be found rapidly by any crew member wandering into the area, cameras that track entry and exit, and any other numerous security systems onboard this starship. As fun as it might be to destroy the equipment, you'd be caught and likely face criminal charges almost immediately or at the very least be fired and have to pay a lot of money you don't have. 
      *set count +1
      *goto FirstDay
  *hide_reuse #I should go have a conversation with Miller. 
    *set count +1
    *goto MillerConvo
  *hide_reuse #Clark said I could come and see him later. I'll do so. 
    *set count +1
    *goto ClarkConvo
  *hide_reuse #The Nisai 'sisters' are quite the pair. I'll go get to know them. 
    *set count +1
    *goto Sisters
  *if (count = 5)
    #I should get on with my training; reading the handbook and doing the modules in the company portal before going to bed. 
    *goto bed


*label bed

*label GeneTime

*label Sisters

*label ClarkConvo

*label MillerConvo

*label FirstDay


*label AnjaMeeting


*label catch_choice

Catch the label choice.

*page_break 
*finish

You can also use *else statement.

*set implicit_control_flow true

*temp GeneSwap 2
*temp count 0



*fake_choice
  *hide_reuse #I'll go and meet Anja. She has to be on the ship somewhere. 
    *set count +1
    *goto AnjaMeeting
  *if (GeneSwap <= 3)
    #I'll go and get the gene modifications I was promised. This should be fun. 
      *set Count +1
      *goto GeneTime
  *else
    *hide_reuse #I'd go to get modifications I spoke of with Dubon, but that technology is inherently evil. 
      You spend a few minutes trying to comprehend why anyone would get those sorts of modifications to themselves when their bodies were already made perfect, or at least perfect enough, by evolution. For a little while, you entertain the idea of sabotaging that machinery onboard... but quickly come to the realization that the act would be found rapidly by any crew member wandering into the area, cameras that track entry and exit, and any other numerous security systems onboard this starship. As fun as it might be to destroy the equipment, you'd be caught and likely face criminal charges almost immediately or at the very least be fired and have to pay a lot of money you don't have. 
      *set count +1
      *goto FirstDay
  *hide_reuse #I should go have a conversation with Miller. 
    *set count +1
    *goto MillerConvo
  *hide_reuse #Clark said I could come and see him later. I'll do so. 
    *set count +1
    *goto ClarkConvo
  *hide_reuse #The Nisai 'sisters' are quite the pair. I'll go get to know them. 
    *set count +1
    *goto Sisters
  *if (count = 5)
    #I should get on with my training; reading the handbook and doing the modules in the company portal before going to bed. 
    *goto bed


*label bed

*label GeneTime

*label Sisters

*label ClarkConvo

*label MillerConvo

*label FirstDay


*label AnjaMeeting


*label catch_choice

Catch the label choice.

*page_break 
*finish

Your first instinct was absolutely correct actually. I’m not sure how I missed that, but I breathed an audible sigh of relief when it worked because it means the rest of my code doesn’t also have to be debugged xD