Hi! I'm likely doing something terribly wrong, being more a writer than coder, but I do know enough about coding to stay afloat... most of the time. I'm having a problem in a project, with an IF statement that contains another IF statement.
It works fine with this...
But as soon as i try to use this...
...I get errors popping up that the first IF has no closing statement, or that the Else is on it's own. Is the code seriously thinking that the nested statement's close is the main statement's close as well? The nested parts are working fine...
It works fine with this...
<<if $Light eq true>>
  Room Description
  <center>[[Exit links here]]</center>
<<else>>
  Dark Room Description
<<endif>>
<center>[[Always visible exit link here]]</center>
But as soon as i try to use this...
<<if $Light eq true>>
  Room Description
    <<if $Stat lt 34>>Nothing
    <<elseif $Stat lt 67>>Comment on env. hint
    <<else>>Identified env. hint
    <<endif>>
  <center>[[Exit links here]]</center>
<<else>>
  Dark Room Description
    <<if $Stat lt 34>>Nothing
    <<elseif $Stat lt 67>>Comment on env. hint
    <<else>>Identified env. hint
    <<endif>>
<<endif>>
<center>[[Always visible exit link here]]</center>
...I get errors popping up that the first IF has no closing statement, or that the Else is on it's own. Is the code seriously thinking that the nested statement's close is the main statement's close as well? The nested parts are working fine...