hyTags
HomeHome DocumentationDocumentation

number-is-less

Checks if a number is less than another number
Parameter
Type
Description
self
Number
The first number to compare
other
Number
The second number to compare
return
bool
True if the first number is less than the second, false otherwise
Test Case:5 is less than 10
    <div></div>
    
    <number-new value="5">
    <number-is-less other="10">
    <assert-true>
    
    👆 Try to change something!
  • Test Case:10 is not less than 5
      <div></div>
      
      <number-new value="10">
      <number-is-less other="5">
      <assert-false>
      
      👆 Try to change something!
    • Test succeeded Test failed