I believe that because the NAnt config file is XML, you need to escape the XML character '<', so:
<if test="${'b' < 'a'}"> <echo message="wrong"/> </if> -----Original Message----- From: Stephen Ho [mailto:[EMAIL PROTECTED] Sent: Thursday, August 04, 2005 10:50 AM To: nant-users@lists.sourceforge.net Subject: [Nant-users] using the < operator causes an error. Hi, I am new to Nant. When I try to use the < operator to compare 2 strings or numbers, it gives me an error. The > operator works fine. I am using RC3 on winXP. Example: <if test="${'b' < 'a'}"> <echo message="wrong"/> </if> Error Message: Error loading buildfile. '<', hexadecimal value 0x3c, is an invalid attribute character. It runs fine when I do this: <if test="${'b' > 'a'}"> <echo message="right"/> </if> Thanks in advance! HS^隊XJ'uᨼ^塶J zሷq<汫צm m飶NRjqkjw"7偯zZ) .'s'%x䵁r潔z Wî+ޜ7zZ) 1ڂ)>#y䨠lM榱7)@r㉳#潨Ǭޙ 1欺z{a䁬 0o۱ǹZ嫞z&j)b bZ쮞۬z%l媲q zmᡶ?Xଶ(~zw슭Xb鵝?ᝩǫ