Quartz Composer JavaScript Reference © Cybero Designs  

indexOf

Type method
Format string. IndexOf (search string, position search)
Commentary
Search for string. 。 Find the starting position can be omitted. If you omit the search string from the beginning. Results indicate the position string. If not found returns -1.
Sample code - QC 2 JavaScript
str = "Sample";
n = str.indexOf ( "m");
outputs [0] = n;
Sample code - QC 3 JavaScript
function (__number outputNumber) main ()
{
var result = new Object();
str = "Sample";
n = str.indexOf("m");
result.outputNumber = n;
return result;
}

Return to the Start Page