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 get this message and the thread close, even i already using ignore error
Thread ended with message "ReferenceError: Can't find variable: VAR_IS_EXISTS during execution of action "
Any Help?
@berubah project in studio
@berubah Ignoring errors does not save you from syntax errors.
@moon Yeah, and u can also type a space between BAS_var and square brackets instead of round brackets. In your case: myvar[ [[CYCLE_INDEX]] ].name
@GaG No it wasn't the issue, else is not in parenthesis so it's gonna execute anyway. I know that's not the ideal code :P
P.S- the above guy's solution worked.
@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?
Thank you @Fox
Marked as solved and Credits in the topic :)