%if% after %elseif% shows error #260


Open
  • Fordy436 created this issue Mar 31, 2021

    When testing for something within a segment of a script, i.e.

     

    command:
    command: /command
    error-message: '...'
    type: RUN_CONSOLE
    runcmd:

    - '$Script$%elseif%$arg1==1'
    - '$text$Main Body'
    - '$Script$%if%$arg2==2'

    - '$text$Secondary Body True'

    - '$Script$%if%$arg2!=2'

    - '$text$Secondary Body False'

     

    - '$Script$%elseif%$arg1==2'

    ...

     

    Even though something such as "/command 1 1" executes perfectly fine, if there is an error-message then it will show it, even though there is no error. I have to delete the error-message: '...' line for it to not do it, but that shouldn't be necessary, especially when I need to use the error message for something else.


To post a comment, please login or register a new account.