Participant
September 24, 2021
Answered
Unexpected token 'if'
- September 24, 2021
- 2 replies
- 1163 views
As i know you can't use "if" in a variable, also i'm not sure what you mean with ","? it is wrong and you want to use "." or you mean a array with 2 values?
anyway if it's "." your expression should looks like this
b = effect("StartPlus")("Punkt")[0];
function funName() {if (786.1<b)
{
return 786.1
}
else
{ return b}};
a = funName();
[960,a];
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.