The throw Command

Syntax

throw <expression>

Description

The throw command throws an exception.

Examples

<script type="text/hyperscript">
  def throwsIfTrue(value)
    if value throw "Yep!"
  end
</script>