hyTags
HomeHome DocumentationDocumentation

value-drop

Removes a value from the stack
Parameter
Type
Description
type
Type?
The type of value to drop. If not specified, drops any value.
return
void
No return value
Test Case:Drop value removes it from stack
    <div></div>
    
    <string-new value="first">
    <string-new value="second">
    <value-drop>
    <assert-equal value="first" type="string">
    
    👆 Try to change something!
  • Test Case:Drop skips non-matching types
      <div></div>
      
      <number-new value="42">
      <string-new value="first">
      <string-new value="second">
      <value-drop type="string">
      <value-drop type="number">
      <assert-equal value="first" type="string">
      
      👆 Try to change something!
    • Test succeeded Test failed