Syntax error on setting variable value

Moderator: Benj

Post Reply
zumpitu
Posts: 22
Joined: Tue Jul 03, 2018 12:21 pm
Location: Southam UK
Has thanked: 4 times
Been thanked: 2 times

Syntax error on setting variable value

Post by zumpitu »

Hi All

I found a very minor bug when setting variable value in an array.

For example if I type inside the "Calculation Icon "this value

Code: Select all

Sin_C [9] = 104
Sin_C [10] = 087
Sin_C [11] = 070
Sin_C [12] = 053
Sin_C [13] = 035
Sin_C [14] = 018
Sin_C [15] = 000
Sin_C [16] = -018
Sin_C [17] = -035

I get Syntax error on " Sin_C [10] = 087" , "Sin_C [14] = 018" and "Sin_C [16] = -018"

to get rid of the error I have to move down the line with the syntax error , for example "Sin_C [16] = -018"

copy "Sin_C [15] = 000" , change 000 to -018, and than [15] to [16] , I found this sequence the one that work beater , but is not 100% of the time like this

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times

Re: Syntax error on setting variable value

Post by LeighM »

Try removing the leading zeros, I think Flowcode might be treating the values as octal

Post Reply