hyTags
HomeHome DocumentationDocumentation

number-is-greater

Checks if a number is greater 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 greater than the second, false otherwise
Test Case:10 is greater than 5
    <div></div>
    
    <number-new value="10">
    <number-is-greater other="5">
    <assert-true>
    
    👆 Try to change something!
  • Test Case:5 is not greater than 10
      <div></div>
      
      <number-new value="5">
      <number-is-greater other="10">
      <assert-false>
      
      👆 Try to change something!
    • Test succeeded Test failed