Comments (5)
Unfortunately, the '<= ? :' syntax is currently not supported, so this explains why it is not working. But the error message you receive is not correct.
If you require this functionality I could add this in a future version of Jace. Currently you can write custom if & else functions.
from jace.
Interesting. Could you please refresh me on the if/else syntax ?
from jace.
You can use the following functions in Jace:
- ifless
- ifmore
- ifequal
from jace.
Hello, a small status update: I am adding support for boolean conditions (<, >, <=, >=, == and !=).
You will be able to use them with the 'if' function. The if function will have the following format: if(condition, option1, option2). I will release it as part of 0.8.7.
Until then: you will need to use ifless, ifmore or ifequal.
from jace.
Support added in the dev branch. The if function mentioned above is now implemented.
False is the value 0.0, true is any other value.
from jace.
Related Issues (20)
- Can we make Random overrideable? HOT 3
- Bitwise operations
- Non base-10 numbers
- Matrix & display function itself
- Override operators HOT 2
- Feature Request: Option to set calc trigonomic functions with degrees (not radian) HOT 1
- Wrong precendence for unitary minus and exponential
- Invalid floating point numbers cause InvalidOperationException
- Problems with ambiguity of e
- Invalid scientific notation leads to IndexOutOfBoundsException instead of ParseException
- Upgrade to NetStandard 2.0 HOT 2
- Interpreter.BuildFormula does not work with constants
- Is this project still being updated? HOT 2
- Runtime Error : Could not load file or assembly System.Runtime HOT 2
- JaceOptions case sensitivity does not get applied to FunctionRegistry or ConstantRegistry on engine constructor HOT 4
- Bug in operators precedence HOT 17
- Request for dynamic variables
- PEMDAS HOT 2
- Introducing _sonic_, a maintained Jace.NET fork/successor HOT 1
- avg function not working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jace.