hyTags
HomeHome DocumentationDocumentation

number-is-equal

Checks if a number is equal to another number
Parameter
Type
Description
self
Number
The first number to compare
other
Number
The second number to compare
return
bool
True if the numbers are equal, false otherwise
Test Case:Equal numbers
    <div></div>
    
    <number-new value="42">
    <number-is-equal other="42">
    <assert-true>
    
    👆 Try to change something!
  • Test Case:Unequal numbers
      <div></div>
      
      <number-new value="42">
      <number-is-equal other="43">
      <assert-false>
      
      👆 Try to change something!
    • Test succeeded Test failed