So i'm right at the end of a project and im apparently missing an <</if>> somewhere on the biggest page of code. Is there an easy way to find out where it is missing from?
This is driving me mad, ive found the <<if that is apparently missing its <</if however the <</if I intended to close the macro is where it should be and none of the <</if tags inbetween the two seem to be missing
<<if $gold gte ($minemulti + 2499)>>\ 10000mine
(+10000 Gold/ Week) (Cost: <<print $minemulti + 2499>> Gold)
<</if>>\
THE LABYRINTH - What purpose this place once had you cannot say. For us this place is but a home of treasures.
I'd say use test mode, but I'm guessing you're using SugarCube v1, rather than v2, so that's out.
I'm assuming you're seeing the error when you test. Try hovering over the error. That will show a tooltip with the code of the initial <<if>>, which may help you track it down. The missing closing tag should belong to it or one of its child <<if>> macros (hopefully it won't have a ton of children).
Comments
So it's the first <<if that is flagging as missing its <</if
I'm assuming you're seeing the error when you test. Try hovering over the error. That will show a tooltip with the code of the initial <<if>>, which may help you track it down. The missing closing tag should belong to it or one of its child <<if>> macros (hopefully it won't have a ton of children).