# Exercise: Chaining Comparisons
#
# To combine multiple comparisons, you need boolean operators.
# But first, let's see how to structure a compound check.
#
# Idea (in English): "is the top of stack between 1 and 10?"
# You need TWO comparisons:
#   - top >= 1
#   - top <= 10
# Then combine them with `and`.
#
# But each comparison consumes the value! Since Seq has no
# variables, you can't just refer to the original twice -
# you have to `dup` it first so a copy survives each test.
#
# Example (real Seq, for the value 5):
#   5 dup 1 i.>=    # ( 5 true ) — dup'd, then tested copy vs 1
#   swap 10 i.<=    # ( true true ) — test original copy vs 10
#   and             # ( true )
#
# Your task: Check if 5 is greater than 3 AND less than 10.
# Hint: you'll need to keep a copy of 5 around for the second
# comparison, since the first one consumes it.
# When done, delete the marker line below.

# I AM NOT DONE

: test-chaining ( -- )
    # Your code here
    # Check whether 5 is both greater than 3 and less than 10.
    false
    # Do not edit below this line
    test.assert
;
