Skip to content

Add support for +=, -=, ~= ...Β #4752

@rgpublic

Description

@rgpublic

It would be really nice if we could increment, decrement and append strings just by saying

{% set dummy=1 %}
{% set dummy+=1 %}

or

{% set dummy="foo" %}
{% set dummy~="bar %}

Otherwise we always need to write dummy=dummy+=1 which is repetitive. I think the syntax above would be very idiomatic because it exists in PHP and comes naturally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions