Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > Hero Lab Discussion
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
javadragon
Member
 
Join Date: Aug 2010
Posts: 50

Old June 14th, 2014, 06:05 AM
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?
javadragon is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old June 14th, 2014, 08:03 AM
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>
Mathias is offline   #2 Reply With Quote
javadragon
Member
 
Join Date: Aug 2010
Posts: 50

Old June 14th, 2014, 08:20 AM
Thank you kindly Mathias.
javadragon is offline   #3 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 10:13 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.