diff --git a/data/en/cfwhile.json b/data/en/cfwhile.json index aa3f21cbf..ada569240 100644 --- a/data/en/cfwhile.json +++ b/data/en/cfwhile.json @@ -27,6 +27,13 @@ "code": "\r\n\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n\r\n [#row#, #col#]\r\n\r\n \r\n \r\n \r\n", "result": "[0, 0] [0, 1] [0, 2]", "runnable": true + }, + { + "title": "Script syntax with break", + "description": "A while loop from 1 to 10 that breaks once the variable reaches 5. Note that Script syntax is valid in ColdFusion even though the tag syntax is not.", + "code": "i = 1;\nwhile (i <= 10) {\n writeDump(i);\n if (i == 5) {\n break;\n }\n i++;\n}", + "result": "12345", + "runnable": true } ] }