public While whileStatement ( SameDiffConditional sameDiffConditional , SameDiffFunctionDefinition conditionBody , SameDiff . SameDiffFunctionDefinition loopBody , SDVariable [ ] inputVars ) { return While . builder ( ) . inputVars ( inputVars ) . condition ( conditionBody ) . predicate ( sameDiffConditional ) . trueBody ( loopBody ) . parent ( this ) . blockName ( "while-" + UUID . randomUUID ( ) . toString ( ) ) . build ( ) ; }
Creates a while statement