Quartz Composer JavaScript Reference © Cybero Designs  

rightContext

Type Property (Deprecated)
Format new RegExp (pattern matching string, optional)
Commentary

The substring following the most recent match. No QC2 code sample.
Sample code - QC 3 JavaScript
function (__string output) main ()
{var result = new Object();
var str="Drink Coffee";
var pattern=new RegExp("Drink Tea");
if (pattern.test(str)==true)
{
result.output = "Match found! "
}
else
{
result.output = "Match not found"
}
pattern.compile("Drink Coffee");
if (pattern.test(str)==true)
{
result.output = "Match found!"
}
else
{
result.output = "Match not found"
}
return result;
}

Return to the Start Page