hyTags
HomeHome DocumentationDocumentation

value-is-not-nil

Checks if the last value of the specified type is not 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 not nil, false otherwise
Test Case:Check non-nil value returns true
    <div></div>
    
    <string-new value="hello">
    <value-is-not-nil>
    <assert-true>
    
    👆 Try to change something!
  • Test Case:Check nil value returns false
      <div></div>
      
      <value-nil type="string">
      <value-is-not-nil>
      <assert-false>
      
      👆 Try to change something!
    • Test succeeded Test failed