One way of doing something similar is to put a j:forEach around the whole script, and then use j:break to jump out of the loop, but then you don't get an exit code. The forEach should only loop once of course :)
/mark On 12/19/06, Paul Libbrecht <[EMAIL PROTECTED]> wrote:
Anders, there's no tag for that, it would be easy to make, but you use invokeStatic tag for this in the meantime, or? paul Anders Kofoed wrote: > Hi Jelly users, > > I'm a newbie to Jelly script and are in the process of evaluating > Jelly script for future use in deployment of our systems. > > Question: How to I exit a jelly-script if want to - maybe with an exit > status (like exit(0);) ? > > A snippet of the my test script: > > <j:catch var="exception"> > <h:get uri="http://test-server1/" var="web1"/> > </j:catch> > <j:if test="${exception != null}"> > Connect failed! > //*exit(0);* > </j:if> > > How do I exit if connection fails ? > > Kind rgds > Anders Kofoed
