Skip to content, Skip to search

Changes

Scripting comparisons

405 bytes added, 15:33, 1 August 2008
no edit summary
}
}
</source>
 
Note that above the loop is only set as an example. It's easier to simply query the list of <i>keys</i> for the specific <i>text</i> key we are looking for:
 
<source lang="java">
...
// if a command matches, redo color to black
if (keys.contains(text)) {
prompt.setForeground(Color.black);
return;
}
...
</source>
Emailconfirmed, uploaders
653
edits