Script |
|
Context |
|
Script |
|
Context |
|
Script |
|
Context |
|
Script |
|
Context |
|
Script |
|
Context |
|
Script |
|
Context |
|
Script |
|
Context |
|
Script |
|
Context |
|
Script |
|
Context |
|
Script |
|
Context |
|
Script |
|
Context |
|
Script |
|
Context |
|
Script |
|
Context |
|
Script |
|
Context |
|
Script |
|
Context |
|
Script |
|
Context |
|
Script |
|
Context |
|
Script |
|
Context |
|
Script |
|
Context |
|
Script |
|
Context |
|
Script |
|
Context |
|
var value = 3;
var array = [1,'2',3, 'hello'];
value =~ array;
var value = 2;
var set = {1,'2',3, 'hello'};
value !~ set;
Script |
|
Context |
|
Script |
|
Context |
|
var a = 5;
var b = 2;
'hello'.startsWith('hell') and ( a < 9 or b >= 6 ) and not ( a == b );
Script |
|
Context |
|
Script |
|
Context |
|
Script |
|
Context |
|
Script |
|
Context |
|
Script |
|
Context |
|
var array = [ 'A', 'B', 'C', 'D' ];
var arrayString = '';
for (var i : 1 .. size (array)) {
if (empty (arrayString)) {
arrayString = array[i-1];
} else {
arrayString += ' , ' + array[i-1];
}
}
return arrayString;
Script |
|
Context |
|
var s = new('java.lang.String', 'Hello');
return 'include e:'+ s.contains('e') + ' length:' + s.length();
var date = new('java.util.Date');
return 'current time:' + date.toString() + ' value:' + date.getTime();
var d = new('java.lang.Double', 0d);
return 'minmum of positive=' + d.MIN_VALUE + ' maximum=' + d.MAX_VALUE;