Type ‘boolean’ is not comparable to type ‘number’.ts(2678)

The solution for “Type ‘boolean’ is not comparable to type ‘number’.ts(2678)” can be found here. The following code will assist you in solving the problem.

You should be using if/else statements instead. Note that your switch/case code does not have a default return, which will throw an error anyway: you will need to catch causes where value <= 1 and value >= 259200 anyway:

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

inline scripts encapsulated in