Announcement

Collapse
No announcement yet.

Loop

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Loop

    How to create a loop (for i=0 to... do etc.) in esignal?

  • #2
    Okay

    just find it


    Comment


    • #3
      Hi pbereau,

      The link is bad... FWIW, there is a trick to posting links to KnowledgeBase articles. (I believe this is because the address you copied has something to do with your unique browser session or search.)

      When in the KnowledgeBase, you have to select the eMail tool in the right margin to eMail the link. When the eMail pop-up is created, the link in the pop-up is a valid stand-alone link to the specific KnowledgeBase article.




      Here is the the link using that techniqe...

      http://kb.esignalcentral.com/article.asp?article=1782&p=4

      Comment


      • #4
        Thanks Steve

        Any examples of programs with loops in efs2 i tried to run one but still have some bugs!

        Any examples welcome

        Comment


        • #5
          Hi pbereau,

          here are some loop examples

          PHP Code:
          //do loop technique

          var safetyCount 0;
          try
          {
           do{
            
          //your stuff here...
            
          if((safetyCount++)>10000)throw("safetyCount greater than 10000");
           }
           while (
          true);
          }
          catch(
          e) {
           
          debugPrintln("error in do loop ==>> "+e);
          }
           
          //typical for loop technique

          for(var i=0;i<20;i++){
           
          //your stuff here... 

          Please note that I put in a safetyCount variable in the do loop that throws an error if the safetyCount variable exceeds 10,000. That is a good practice if you really don't know what you are doing with do loops. It will prevent the application to continue looping infinitely if you happen to incorrectly set-up your exit condition.

          To be any more specific to your specific issue, please post a working efs and we can address the issue directly.

          An example efs that uses a slightly different loop structure is here: (the loading data from file efs).

          As far as posting an efs2 example, the use of efs1 or efs2 methods or techniques makes no difference with regards to basic JavaScript functionality.

          Comment

          Working...
          X