I made a new function called length
which tests the count of characters and shows "error result" if the count greater than 5.
However, the result of function is #NUM
! If the test is for 5 characters or less the result is shown.
What is wrong?
Function length (number as integer)
If ( Len (CStr (number)) > 5 ) then
length = "error"
End if
If ( Len (Cstr (number)) <6) then
length = "the count is true"
End if
End Function