literals operators binary operators Example: variables list comprehensions This expression returns all titles (e.title) from
b.entries where the time created (e.created) is
greater than a certain date, ordered by e.created in
descending order. Both the where and order by
clauses are optional. An ordering is either ascending (asc)
or descending (desc).Expressions
A number of literals are supported:
The following operators are supported:
if(!(b is a String) && (b in [8, 5] || b + 3 = 7)) {
// ...
}
Variables can be accessed by use of their identifiers and their properties using the . notation. Example: person.lastName
List comprehensions are a combination of mapping, filtering and sorting. Example: [e.title
for(e : BlogEntry in b.entries
where e.created > date
order by e.created desc)]
Contributions by ZefHemel