-
Notifications
You must be signed in to change notification settings - Fork 1
Bio Expression Array Operations
Rajab Davudov edited this page Apr 7, 2019
·
4 revisions
Logical operations are supported for arrays. As in following examples:
car.year_of_production = [2012, 2015, 2018]
car.producer != ['BMW','Mercedes']
Note that above checks are performed against all array elements. If car.year_of_production
is equal to any of array elements result will be true. If car.producer
is not equal to all of array elements result will be true.
For arithmetic operations on arrays one of the sides must be number. Note that expression syntax doesn't support complex array/matrix operations.
5 + [1,2,3]
will result in [6, 7, 8]
5 * [1,2,3]
will result in [5, 10, 15]