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 can't Calculate [[AGE]] = 1996 was want that 2019 - [[AGE]] = 23 Log [[AGE]] : Thread #1 : NaN
@cparonny Type of variable "Age" is not a number.
How can i Make this var as a number?
@cparonny Its not need to do)) Simply you have in this variable not the number of, and I not know that you have in it.
@cparonny I think variable contains list (array)
Actualy [[AGE]] = Birthday year . i need to calculate his/her age , So Was trying to calculate it.
@mrdenti Where? If u need resource then create this: Снимок.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?
If you compose an array of like thousands of Javascript objects you may set it to null to clear memory:
Or use the "Set variable" action with a null expression.