I want to write a script such that if a particular condition is true move ahead and if false then move back to a particular label in the script. how to do that. please help.
Solved! Go to Solution.
This is what i did and it works
a = 0; tableExpr = Expr( ) ; If( a >= 1, //Condition Print( "Condition is true." ) //Then , tableExpr //Else );
If condition is true then proceed else it will execute set of expressions defined earlier in the script.
I guess you dont want to wrap entire jsl code in if or while condition. instead whenever exception occurs it should skip a block. well, since no goto exist in jsl, if you work through function here is a work around. use a dummy for loop and conditional break inside a function.
for(i=1,i<=1,i++, bar=12; break(); bar=15; ); show(bar);