playing with nested ifs

This commit is contained in:
Vivianne 2024-10-11 23:15:46 -04:00
parent 4c2f47e04a
commit 83cd9fdbcc

View file

@ -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))