From 83cd9fdbcc31fa055b36476284f1f2d32303c801 Mon Sep 17 00:00:00 2001 From: Vivianne Langdon Date: Fri, 11 Oct 2024 23:15:46 -0400 Subject: [PATCH] playing with nested ifs --- scene.scm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scene.scm b/scene.scm index c8c8d4c..4274894 100644 --- a/scene.scm +++ b/scene.scm @@ -126,8 +126,11 @@ (button (@ (click ,(lambda (e) (! counter 0)))) "Reset") (p "The square is: " ,square) - ,(if~ (> (! counter) 20) - `(p "Counter is big!") + ,(if~ (>= (! counter) 20) + `(p "Counter is big!" + ,(if~ (> (! counter) 50) + " Really big!" + "")) `(p "I want to see " ,(~ (- 20 (! counter))) " more"))))) (append-child! (document-body) (element-ref-element root-ref))