Skip to content

Document ISNEGATIVE() / ISPOSITIVE() constraint functions #143

@takeyaqa

Description

@takeyaqa

The constraint grammar section in doc/pict.md does not mention ISNEGATIVE() and ISPOSITIVE(), but they are implemented in cli/ctokenizer.cpp (getFunction() and doPostParseExpansions()).

From reading the code, they appear to work as follows:

ISNEGATIVE([Param]) — true when the parameter's value is negative (prefixed with ~)
ISPOSITIVE([Param]) — true when the parameter's value is positive
ISNEGATIVE() / ISPOSITIVE() without arguments — expands to all parameters joined with OR / AND respectively

Are these intended for public use? If so, would you accept a PR to add them to the documentation and the constraints grammar?

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