Skip to content

Allow to use '=' instead of '== ' in single line anonymous expression #60

Open
@tmteam

Description

@tmteam
var a = Funny.SingleEqualOp.Calc("if(now().day = 1 and now().month = 1) 'happy new year' else 'go to job'")

The problem is to distinguish equality check and field assignment

var a = Funny.SingleEqualOp.Calc( 
"""
    if(now().day = 1 and now().month = 1) 
       { msg =  'happy new year' }
    else 
      { msg =  'go to job' }
"""
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions