<% var a = 0; var b = null; select{ case a<0:b="0"; case a==0:{ b="1";} case a>=0:b="2"; } %> ${b}