Skip to content

Error when using some Ternary Operators code #76

Closed
@calebeaires

Description

@calebeaires

On a Nativescript xml coding, when using Ternary Operators with < I got the error above, but not when using something like that !=:

XML formatting failed: at line 13, column 76: expected exclamation mark, question mark or alphabetic tag name.

<StackLayout>
    <Label text="label with just < " visibility="{{ p.status < 1 ? 'visible' : 'collapsed' }}"  />
    <Label text="labe with != " visibility="{{ p.status != 1 ? 'visible' : 'collapsed' }}" />
</StackLayout>

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions