In the conditions, try using ’ ’ instead of “ “
"... [producerHomecountry], {if producerHomeContry == 'Japan'}Like most other OPhtori students {else}everything else in your text{/else}"
You technically don’t need to use the {/if} since it will work without it. However, the “ “ may be making it unclear to Ren’Py which the terminating “ is. By using single quotes (you have to use it when [somedict[‘somekey’]] or it will give a syntax error), it is clear to Ren’Py and the code which is the dialogue and which is the text tag.
The best I can guess, Ren’Py is seeing it like this:
"... [producerHomeCountry], {If producerHomeCountry == " (new line) Japan"} {else}Something{/else}"
So, the error is correct that there is no {if} for the {else} because of the double quote for Japan. By changing it to a single quote, it doesn’t interrupt that and Ren’Py sees it as one line, which then will see the {if} for the {else}.