Skip to content

v1.9 - @if command can't run @else block if the :output command is using :end (FIXED ON v2.0) #14

@cassitly

Description

@cassitly

So, this is a really weird bug. When we just use :output your text without the :end module it works normally. But if we use :end block on the @if block only, it breaks. The @else block doesn't matter. If there's a :end module in the @else block its fine. This bug only appears, when I put a :end module on the :output function in the @if block only.

:package-main root/me
:package-com x-auto

:packaged [
    @var [x]: (integer)2
    @var [usernames]: (string)Someone
    @var [negativity]: (negatives)-10
    @var [decimal]: (double)0.1
    @var [percentage]: (percentage)11%

    @output x
    @output usernames
    @output negativity
    @output decimal
    @output percentage

    @if [x > 10]:
        :output sure!
            a
        :end
    @else
        :output hello!
            noo
        :end
    @end
];

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions