Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /* ************************************************************************
 #
 #  DivConq
 #
 #  http://divconq.com/
 #
 #  Copyright:
 #    Copyright 2014 eTimeline, LLC. All rights reserved.
 #
#  License:
#    See the license.txt file in the project's top-level directory for details.
#  Authors:
#    * Andy White
************************************************************************ */
package divconq.script.inst;
public class Until extends LogicBlockInstruction {
    @Override
    public void alignInstruction(final StackEntry stackOperationCallback callback) {
    	StackBlockEntry bstack = (StackBlockEntry)stack;
    	
    	// signal end if conditional logic fails after loop
    	if (bstack.getPosition() >= this..size()) 
    		if (!this.checkLogic(stack))
    			bstack.setPosition(0);
    		else
	        	stack.setState(.);
    	
       	super.alignInstruction(stackcallback);
    }
New to GrepCode? Check out our FAQ X