Red line on if statement wont go away even when their is no error

I just started coding a bit a go and I’m trying to start with a simple text based game

Every time I start an “if” statement it gives me a red line that follows my cursor and trying to delete it doesn’t work (I have a vid but it’s not letting me post)

Any help?

You say “even when their is no error”, but there is an error: it’s incomplete!

Once you’ve added the condition and the block it controls, the red underlining will go away (assuming that there’s no error that it can see, of course).

No it still stays their and follows even after I finish the prompt (that or I just don’t know how it works)

Red line under cursor

You need a code under the “if” block. You didn’t add the block so it doesn’t disappear.

For example, you add a function to handle the “huechoice”, you can call it below. Or you write the code below.

Great! :smiley: how do I do that?

Wait never mind found out how to do it

Thank you !