The main issue was indeed with your indents as @[email protected] pointed out. They need to be consistent throughout your code, so you can use either a tab per nested indent or a double space. So, for example:
layout
debug = borders
gridaaaabb c c
d d d d
This is consistent because you have used spacespace for each indent. The issue has occurred because on one line you’ve used spacespace, on another you’ve used tabtab. I fixed that throughout the code and have used spacespace, but it was inconsistent throughout.
There was one more issue on line 12 where you added curly braces around the pattern^2 variable which confused the script:
else {"{[pattern^2]} [gender] {with low white spotting|with medium white spotting|with high white spotting}"}
Simply removing those fixed that last problem:
else {"[pattern^2] [gender] {with low white spotting|with medium white spotting|with high white spotting}"}
It now looks like your code works as was expected?
The main issue was indeed with your indents as @[email protected] pointed out. They need to be consistent throughout your code, so you can use either a tab per nested indent or a double space. So, for example:
layout debug = borders grid a a a a b b c c d d d d
This is consistent because you have used
space space
for each indent. The issue has occurred because on one line you’ve usedspace space
, on another you’ve usedtab tab
. I fixed that throughout the code and have usedspace space
, but it was inconsistent throughout.There was one more issue on line 12 where you added curly braces around the
pattern^2
variable which confused the script:else {"{[pattern^2]} [gender] {with low white spotting|with medium white spotting|with high white spotting}"}
Simply removing those fixed that last problem:else {"[pattern^2] [gender] {with low white spotting|with medium white spotting|with high white spotting}"}
It now looks like your code works as was expected?
https://perchance.org/6jcw0cjai2#edit
Dpaste.org PasteBin