Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

Converting less than symbol to < in for loop

stargeyser
Level 1
Level 1

I am trying to create a for loop inside of a javascript function by using the XML Source tab in LiveCycle.  When I do this a < symbol becomes &lt;. A <= starts causing major erros, and the text after becomes red and then blue (indicate key words).

I am wondering how do I create a for loop without these issues?

For instance the following will cause an error that will not let me leave the XML source tab:

     var x;

     for(x = 0; x <= 5; x++)

     {

          xfa.host.messageBox("test");

     }
Thanks,

1 Reply
whyisthisme
Level 7
Level 7

try &lt;=

but can I ask why you are writing your script in the xml tab rather than the script editor?