• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Unable to use '<' in procedure?

javadragon

Well-known member
I was attempting to write a procedure utilizing the less than symbol for comparison. I kept getting this error when loading the data files:

File: MyTestFile.user (line 39) - Encountered unknown element tag '2)'

Here is the procedure it is complaining about (I simplified the longer procedure that was causing the error initially):

Code:
  <procedure id="testproc" scripttype="eval">
~ this is a test of using less than in the procedure block
if (1 < 2) then
  call SizeChange
endif
  </procedure>

It seems to see that as the start of a tag. If I make the check a greater then '>' it works just fine. Am I really not allowed to use '<' in procedures?
 
You need <![CDATA[ ]]> wrappers around the script itself:

Code:
<procedure id="testproc" scripttype="eval"><![CDATA[
  ~ this is a test of using less than in the procedure block
  if (1 < 2) then
    call SizeChange
    endif
  ]]></procedure>
 
Back
Top