Customizing the basis in runtime

This examples uses a temp variable as the iteration user list basis to customize the basis in runtime.

  1. Copy the values to a temp variable:
    { { OP COPY } 
        { ERR 0 } 
        { IN {{=0 2}} } 
        { OUT @basis } 
    } 
  2. Set the temp variable as the basis of an iteration user list.
  3. Use the iteration variable as a repeat number in an address:
    { { OP ITERATE } 
        { BASIS @basis } 
        { VAR %u1 } 
        { TYPE user } 
        { BODY { 
            { { OP COMMENT } 
                { COMMENT {TODO: Insert new actions here} } 
            } 
            { { OP PATHCOPY } 
                { ERR 0 } 
                { IN 1(0).NK1(%u1) } 
                { OUT 1(0).NK1(%u1) } 
            } 
        }} 
    } 
  4. The engine works on 1(0).NK1(0) and 1(0).NK1(2).