Skip to content

'?' navigation operator #1972

Closed
Closed
@felipedrumond

Description

@felipedrumond

Is there any navigation operator for html rendering properties?

{ bookingFlow.nextStep.question } throws an exception when 'nextStep' is undefined. That exception could be bypassed using a navigation operator '?' { bookingFlow.nextStep**?**.question }, therefore making a expression like this possible:

// if nextStep is neither undefined nor null, displays its question property value, otherwise, displays the startingQuestion
{ bookingFlow.nextStep?.question || bookingFlow.startingQuestion }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions