Menu

#749 Macro processing needs to support some looping mechanisms

Version 4.0 RC1
accepted
None
none
core
major
trunk
defect
2016-05-14
2013-06-05
No

Suggest adding the following loop control macros

#for VAR = ${START}:${STEP}:${STOP}  
#end  

#foreach VAR in ${LIST}  
#end  

#while VAR REL VAR 
#end  

#until VAR REL VAR
#end  

Discussion

  • David P. Chassin

    • Description has changed:

    Diff:

    
    
    • status: new --> accepted
    • assigned_to: Jason Fuller --> David P. Chassin
    • Milestone: Unscheduled --> Version 4.0 RC1
    • Resolution: --> none
    • Component: Unknown --> core
    • Priority: undetermined --> major
    • Type: undetermined --> defect
     
  • David P. Chassin

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,18 +1,17 @@
     Suggest adding the following loop control macros  
    
    +~~~
     #for VAR = ${START}:${STEP}:${STOP}  
     #end  
    -
    
     #foreach VAR in ${LIST}  
     #end  
    
    -
    -#while VAR in ${LIST}  
    +#while VAR REL VAR 
     #end  
    
    +#until VAR REL VAR
    +#end  
    +~~~
    
    -#until VAR in ${LIST}  
    -#end  
    -