-
Notifications
You must be signed in to change notification settings - Fork 1
Bio Expressions
Rajab Davudov edited this page Apr 2, 2019
·
4 revisions
Bio Expression is an expression language which is evaluated using Bio Object as input variables. It supports both logical and arithmetic operations and functions. Bio Objects are very useful in conjunction with Bio Expressions where you can write dynamic decision making mechanisms for your application.
Any Bio Object can be used and all its tags are accessible inside expressions. Here are examples:
car.year_of_production > 2015 and car.engine * 2 < 6000
car.fuel_efficiency.checkEUStandard()
car.calculateHP(car.cylinders, car.engine) > 200
4 < car.cylinders <= 6 and car.fuel_efficiency < 15.4
?car.producer and car.producer = ['BMW', 'Toyota']