playing with nested ifs
This commit is contained in:
parent
4c2f47e04a
commit
83cd9fdbcc
1 changed files with 5 additions and 2 deletions
|
@ -126,8 +126,11 @@
|
||||||
(button (@ (click ,(lambda (e) (! counter 0))))
|
(button (@ (click ,(lambda (e) (! counter 0))))
|
||||||
"Reset")
|
"Reset")
|
||||||
(p "The square is: " ,square)
|
(p "The square is: " ,square)
|
||||||
,(if~ (> (! counter) 20)
|
,(if~ (>= (! counter) 20)
|
||||||
`(p "Counter is big!")
|
`(p "Counter is big!"
|
||||||
|
,(if~ (> (! counter) 50)
|
||||||
|
" Really big!"
|
||||||
|
""))
|
||||||
`(p "I want to see " ,(~ (- 20 (! counter))) " more")))))
|
`(p "I want to see " ,(~ (- 20 (! counter))) " more")))))
|
||||||
|
|
||||||
(append-child! (document-body) (element-ref-element root-ref))
|
(append-child! (document-body) (element-ref-element root-ref))
|
||||||
|
|
Loading…
Reference in a new issue