From 656638c6dc0b3ee822b77a52550275c36dbfa338 Mon Sep 17 00:00:00 2001 From: gnembon Date: Fri, 6 Dec 2019 12:24:13 -0400 Subject: [PATCH] continue and break scarpet functions to replace _exit_ conditions in loops --- src/main/java/carpet/script/Expression.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/carpet/script/Expression.java b/src/main/java/carpet/script/Expression.java index a61467c0..31942f11 100644 --- a/src/main/java/carpet/script/Expression.java +++ b/src/main/java/carpet/script/Expression.java @@ -1546,7 +1546,7 @@ public class Expression implements Cloneable * the current loop, using break. break and continue can only be used inside * for, while, loop, map, filter and reduce functions, while break can be used in first as well. * Outside of the internal expressions of these functions, calling break or continue will cause an - * error.

+ * error. In case of the nexted loops, and more complex setups, use custom try and throw setup.

*

Please check corresponding loop function description what continue and break do in their contexts, * but in general case, passed values to break and continue will be used in place of the return value of the * internal iteration expression.