Announcement

Collapse
No announcement yet.

Skipping parts of a script

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

  • Skipping parts of a script

    Does anyone have a solution that mimics in EFS/Java the "go to" statement of other languages?

    Thank you.
    Mihai
    Mihai Buta

  • #2
    Originally posted by mbuta
    Does anyone have a solution that mimics in EFS/Java the "go to" statement of other languages?

    Thank you.
    Mihai
    Hello Mihai,

    Try using a control variable set to a specific value based on some conditional statements. Then nest your various blocks of code inside if() statements that checks for a specific value of that control variable.

    PHP Code:

    // conditional statement set the value of the control var, myFlag.
    if (conditionmyFlag 1;

    if (
    myFlag == 1) {
        
    // execute this code block
    }
    if (
    myFlag == 2) {
        
    // execute this code block
    }
    if (
    myFlag == 3) {
        
    // execute this code block

    Jason K.
    Project Manager
    eSignal - an Interactive Data company

    EFS KnowledgeBase
    JavaScript for EFS Video Series
    EFS Beginner Tutorial Series
    EFS Glossary
    Custom EFS Development Policy

    New User Orientation

    Comment


    • #3
      Thank you Jason,

      This what I am doing now, but it gets messy after a while.
      Mihai Buta

      Comment

      Working...
      X