Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
I want to do this function just don't know how to script it.
Ignore errors do something If error = SomeError1 do something else if error = SomeError2 do something different
If you use "ignore errors", you get the variable "last error" which contains the name of the error.
@genadijs34 http://wiki.bablosoft.com/doku.php?id=how_to_catch_errors
@tony2n91 this happend bacause the type of your variables is "string", so you have to change it to the type "number"
@jobriwterr Reload the Page: Javascript - window.location.reload();
@basmail
4628d1bc-0db4-41a2-8c61-9e12cae8ab60-image.png
@allister said in Substring giving me errors:
@rokiroki Sorry bud, I didn't see this come across my feed! You can also use Math.trunc(decs). Just change the type from String to expression when setting the variable. log(Math.trunc(13.37)); // expected output: 13 log(Math.trunc(42.84)); // expected output: 42 log(Math.trunc(0.123)); // expected output: 0 log(Math.trunc(-0.123)); // expected output: -0
@rokiroki
Sorry bud, I didn't see this come across my feed! You can also use Math.trunc(decs). Just change the type from String to expression when setting the variable.
uraabk method worked too, thank you Between mind checking my pm?