From c0a90f40b5858c6f6dd9e0330ac39096e8f7a215 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Thu, 5 Dec 2024 19:29:36 +0000 Subject: [PATCH] doc: add while loops to sample file --- doc/sample/Expressions.im | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/sample/Expressions.im b/doc/sample/Expressions.im index 8c10bb3..e90603d 100644 --- a/doc/sample/Expressions.im +++ b/doc/sample/Expressions.im @@ -47,4 +47,10 @@ Q = match yz in 2 => age = age / 12, 3 => age = age / 365, _ => age = 0 -end. \ No newline at end of file +end. + +while x > 2 do + cout put:"message" +end + +cout put:"message" while x > 2. \ No newline at end of file