Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add IF() function #8

Open
daniel-leicht opened this issue Oct 28, 2018 · 1 comment
Open

Add IF() function #8

daniel-leicht opened this issue Oct 28, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@daniel-leicht
Copy link
Member

The if function will accept 3 arguments: condition, true-case, and false-case.

For example:

$ calc "if( 2 > 3, 100, -100)"
-100
@daniel-leicht daniel-leicht added the enhancement New feature or request label Oct 28, 2018
@daniel-leicht
Copy link
Member Author

Depends on issue #9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant