I'm trying to write some JavaScript code in a gxp file and I get a parsing exception at the "<" character in the "if" construct. Any ideas how to escape it?
<script type="text/JavaScript">
 var current = 0;
 var values = [];
 function goNext() {
  if (current < values.length - 1) {
   current = current + 1;
   update();
  }
 }
</script>
org.xml.sax.SAXParseException: The content of elements must consist of well-formed character data or markup.
 
     
     
     
    