Bug 123726 "Top n", "Bottom n" in highlight dialog doesn't work.
Description: "Top n", "Bottom n" in highlight dialog doesn't work. Steps to reproduce: 1. Add a highlight for a table. 2. Set highlight rule: "account_id", "top n", "3", let its font color red. 3. Preview the report, it doesn't work. Attached is design file.
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/script/ScriptEvalUtil.java
{
			min = resultOp2;
			max = resultOp1;
		}
		return compare( resultObject, min ) >= 0
				&& compare( resultObject, max ) <= 0;
	}
	
	/**
	 * @param obj
	 * @param bln
	 * @return true if obj equals to bln, false otherwise
	 */
	private static boolean isTrueOrFalse( Object obj, Boolean bln )
	{
		if ( obj == null )
			return false;
		try
		{
			return DataTypeUtil.toBoolean( obj ).equals( bln );
		}
		catch ( BirtException e )
		{
			return false;
		}
	}
	
	private static Pattern s_JSReExprPattern;