unless guards in case statements

This commit is contained in:
2021-12-30 12:58:58 -07:00
parent 2760cf745e
commit 410801fa5b
3 changed files with 13 additions and 4 deletions

View File

@@ -461,8 +461,7 @@
(function nextBlankOutput []
(doFor idx (range (+ 1 elementScrollY) ktxt2Elements.length)
(case (nth ktxt2Elements idx)
// TODO add unless guards to case
((when !(output.trim) (Block (objectWith output)))
((unless (output.trim) (Block (objectWith output)))
(changeElementScrollY ->(set elementScrollY idx))
(scrollToPageTop)
(break))