hyTags
HomeHome DocumentationDocumentation

value-is-nil

Checks if the last value of the specified type is nil.
Parameter
Type
Description
type
Type?
The type of value to check. If not specified, checks any type
return
bool
Returns true if the last value is nil, false otherwise
Test Case:Check nil value returns true
    <div></div>
    
    <value-nil type="string">
    <value-is-nil>
    <assert-true>
    
    👆 Try to change something!
  • Test Case:Check non-nil value returns false
      <div></div>
      
      <string-new value="hello">
      <value-is-nil>
      <assert-false>
      
      👆 Try to change something!
    • Test succeeded Test failed