art3mis Posted May 30, 2017 Share Posted May 30, 2017 Can anyone tell me why the following throws an error on the numbers 5.41 and 0? Quote "Invalid array literal for type float" if (@Frame > 24) { forcescale = {5.41}; } else { forcescale = {0}; } Quote Link to comment Share on other sites More sharing options...
woodenduck Posted May 30, 2017 Share Posted May 30, 2017 Is this in a Wrangle? Has forcescale been declared anywhere? Quote Link to comment Share on other sites More sharing options...
art3mis Posted May 30, 2017 Author Share Posted May 30, 2017 Vexpression in PopAttract. AFAIK, forcescale has been tacitly declared, it's a default parameter for this POP. Quote Link to comment Share on other sites More sharing options...
Guest tar Posted May 30, 2017 Share Posted May 30, 2017 curlies are for arrays. Quote Link to comment Share on other sites More sharing options...
art3mis Posted May 30, 2017 Author Share Posted May 30, 2017 (edited) Thanks Marty. Without I get another error (see attached), highliting the letter t in a string variable?? and the curly after 'else' But then, last resort, I simply cut and paste the block of code and the error goes away! A bug or a feature?:) Edited May 31, 2017 by art3mis Quote Link to comment Share on other sites More sharing options...
Guest tar Posted May 30, 2017 Share Posted May 30, 2017 (edited) do you have a sample file; this is error free here: float forcescale; if (@Frame > 24) { forcescale = 5.41; } else { forcescale = 0; } Edited May 30, 2017 by tar Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.