class LogicTypeform
  include AskAwesomely::DSL

  title "My Example Form"

  tags "example", "logic-jumps"

  jump from: :shall_continue, to: :shall_not_continue, if: false

  field :yes_no do
    ask "Shall we continue?"
    ref :shall_continue
  end

  field :statement do
    say "Thanks!"
  end

  field :statement do
    say "Wut?"
    ref :shall_not_continue
  end

  field :statement do
    say "I shouldn't be here"

    skip if: proc { true }
  end

  field :statement do
    say "I also shouldn't be here"

    skip unless: proc { false }
  end

end
