Skip to content

number comparison functions only accept integer values #672

@lovasoa

Description

@lovasoa

Hi !

Currently, number comparison functions only accept integer values:

handlebars_helper!(gt: |x: i64, y: i64| x > y);
handlebars_helper!(gte: |x: i64, y: i64| x >= y);
handlebars_helper!(lt: |x: i64, y: i64| x < y);
handlebars_helper!(lte: |x: i64, y: i64| x <= y);

It would be nice if they could compare any Json value with any other, or at least any number with any other.

initially reported in sqlpage/SQLPage#573

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions