Quartz Composer JavaScript Reference © Cybero Designs  

lastIndexOf

Type Method
Format string. LastIndexOf (search string, position search)
Commentary
You can search a string from the end.Find the starting position can be omitted. If you omit from the end of the search string. Results indicate the position MITSUKATTA string. If not found returns -1.
Sample code - QC 2 JavaScript
tr = "Quartz Extreme";
n = str.lastIndexOf ( "a");
outputs [0] = n;
Sample code - QC 3 JavaScript
function (__number outputNumber) main ()
{
var result = new Object();
str = "Quartz Extreme";
n = str.lastIndexOf("a");
result.outputNumber = n;
return result;
}

Return to the Start Page