Thanks Leo! using < works for me.
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: [EMAIL PROTECTED]
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^�隊X�J�'���u����^�J�����
��z��q�<䞦צm���m��NRjqkjw"�� 7�zZ)���.'�s'%x��rz�
�W���î+ޜ7�zZ)���1�ڂ)�>�#y�lM榱7��)[EMAIL PROTECTED]0����o۱ǹ��Z�۬z�&j)b�
b��Z�۬z�%��l���q����z�m��?�X���(��~��zw��X������b��?����ǫ