Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

long script sentences break even if valid syntax

Avatar

Level 4

hi

i need to use some long sentences of code (example below) but the script panel rejects them at a certain length - can this be worked around

i hope there is a simple way to have long sentences of code like the below without them breaking all the time??? 

example code

this.rawValue = "On a typical day I leave home for at " + work page10.page10posit.hm_wk_leavhome.rawValue + " and arrive at work at " + page10.page10posit.hm_wk_arve_wrk.rawValue + "." + " I leave work for home at " + page10.page10posit.hm_wk_leave_wrk.rawValue + " and I arrive home at" + page10.page10posit.hm_wk_gethome.rawValue;

1 Accepted Solution

Avatar

Correct answer by
Level 4

There is no limit on the length of the scripts. What does the compiler say?

By glancing over your example, you should get an error at the

first occurrence where the word 'work' is used (this.rawValue = "On a

typical day I leave home for at " + work .....)

View solution in original post

1 Reply

Avatar

Correct answer by
Level 4

There is no limit on the length of the scripts. What does the compiler say?

By glancing over your example, you should get an error at the

first occurrence where the word 'work' is used (this.rawValue = "On a

typical day I leave home for at " + work .....)