# Exercise: Nested Conditionals
#
# Conditionals nest like any other expression — the body of one
# `if` can contain another `if`. With the combinator form, the
# brackets make the nesting visually clear: each `[ ... ]` is
# one branch and you can see exactly where each conditional ends.
#
# Remember: Seq has no variables. When a comparison consumes a
# value, use `dup` beforehand so the value is still around for
# the next check.
#
# Example: classify the top-of-stack number as positive,
# negative, or zero.
#
#   dup 0 i.> [
#       drop "positive"
#   ] [
#       dup 0 i.< [
#           drop "negative"
#       ] [
#           drop "zero"
#       ] if
#   ] if
#
# Each branch drops the duplicated value and pushes a string,
# so all three branches end with the same stack shape.
#
# Your task: Classify the number 15.
#   - If greater than 10, push 3
#   - Else if greater than 5, push 2
#   - Else push 1
# Since 15 is greater than 10, the answer should be 3.
# (Tip: each comparison consumes the value, so duplicate it
#  beforehand if you'll need it for the next check.)
# When done, delete the marker line below.

# I AM NOT DONE

: test-nested ( -- )
    15
    # Your code here. Build the conditional with nested `if`s.
    drop 0
    # Do not edit below this line
    3 test.assert-eq
;
