GScript > Java (pt 2)Posted: February 29, 2008
Sometimes you need to get the last element in an array. Here is how you do it in java:
String lastString = myStrings[ myStrings.length - 1 ];
Here is how you do it in GScript:
var lastString = myStrings.last()
It is a small thing, but enough small things make a big thing.